package MatukioEvents
author Yves Hoppe
date 2017-09-05
copyright Copyright (C) 2008 - 2017 compojoom.com - Yves Hoppe, Daniel Dimitrov. All rights reserved.
license GNU General Public License version 2 or later; see LICENSE

 Methods

Format the file

format(integer $bytes) : string
Static
since 7.0.0

Parameters

$bytes

integer

Format

Returns

string

Load the file including data (No permission check!)

getFile(integer $id) : mixed
Static
since 7.0.0

Parameters

$id

integer

File id

Returns

mixed

Get the files for the event id

getFiles(integer $relationId) : array | null
Static
since 7.0.0

Parameters

$relationId

integer

The relation id

Returns

arraynull

Get the files for the event id, but without the file data

getFilesWithoutData(integer $relationId) : array | null
Static
since 7.0.0

Parameters

$relationId

integer

The relation id

Returns

arraynull

Get a status select

getStatusSelect(string $name, integer $selected = 0) : mixed
Static
since 7.0.0

Parameters

$name

string

Name of the element

$selected

integer

The selected value

Returns

mixed

Upload file and get the base 64 decoded file

getUploadFileBase64($name) : array | boolean
Static
deprecated Not used anymore?
since 7.0.0

Parameters

$name

Returns

arrayboolean

 Constants

 

ACTIVE

ACTIVE = 4 
 

BOOKED

BOOKED = 2 
 

EVERYONE

EVERYONE = 0 
 

PAID

PAID = 3 
 

REGISTERED

REGISTERED = 1 
 

UNPUBLISHED

UNPUBLISHED = -1