FileTable extends DataManager
Class FileTable
DO NOT WRITE ANYTHING BELOW THIS
<<< ORMENTITYANNOTATION
Table of Contents
Methods
- createCollection() : EO_File_Collection
- createObject() : EO_File
- download() : mixed
- getBFileId() : bool|int
- TODO place it somewhere else
- getById() : EO_File_Result
- getByPrimary() : EO_File_Result
- getContent() : bool|string
- getEntity() : EO_File_Entity
- getList() : EO_File_Result
- getMap() : array<string|int, mixed>
- Returns entity map definition.
- getModificationTime() : false|int
- getSize() : false|int
- getTableName() : string
- Returns DB table name for entity.
- onBeforeDelete() : EventResult
- query() : EO_File_Query
- saveFile() : AddResult|Result
- updateContent() : mixed
- Updates content of the file.
- wakeUpCollection() : EO_File_Collection
- wakeUpObject() : EO_File
Methods
createCollection()
public
static createCollection() : EO_File_Collection
Return values
EO_File_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_File
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_Filedownload()
public
static download(mixed $fileId[, string $fileName = '' ]) : mixed
Parameters
- $fileId : mixed
- $fileName : string = ''
Tags
getBFileId()
TODO place it somewhere else
public
static getBFileId(mixed $fileId) : bool|int
Parameters
- $fileId : mixed
Tags
Return values
bool|intgetById()
public
static getById(mixed $id) : EO_File_Result
Parameters
- $id : mixed
Return values
EO_File_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_File_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_File_ResultgetContent()
public
static getContent(mixed $id) : bool|string
Parameters
- $id : mixed
Tags
Return values
bool|stringgetEntity()
public
static getEntity() : EO_File_Entity
Return values
EO_File_EntitygetList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_File_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_File_ResultgetMap()
Returns entity map definition.
public
static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getModificationTime()
public
static getModificationTime(mixed $fileId) : false|int
Parameters
- $fileId : mixed
Return values
false|intgetSize()
public
static getSize(mixed $id) : false|int
Parameters
- $id : mixed
Return values
false|intgetTableName()
Returns DB table name for entity.
public
static getTableName() : string
Return values
stringonBeforeDelete()
public
static onBeforeDelete(Event $event) : EventResult
Parameters
- $event : Event
Return values
EventResultquery()
public
static query() : EO_File_Query
Return values
EO_File_QuerysaveFile()
public
static saveFile(array<string|int, mixed> $fileArray[, Storage|null $storage = null ]) : AddResult|Result
Parameters
- $fileArray : array<string|int, mixed>
- $storage : Storage|null = null
Tags
Return values
AddResult|ResultupdateContent()
Updates content of the file.
public
static updateContent(int $id, string $content[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $id : int
- $content : string
- $options : array<string|int, mixed> = []
Tags
wakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_File_Collection
Parameters
- $rows : mixed
Return values
EO_File_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_File
Parameters
- $row : mixed