Bitrix API

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_Collection

createObject()

public static createObject([mixed $setDefaultValues = = 'true' ]) : EO_File
Parameters
$setDefaultValues : mixed = = 'true'
Return values
EO_File

download()

public static download(mixed $fileId[, string $fileName = '' ]) : mixed
Parameters
$fileId : mixed
$fileName : string = ''
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException

getBFileId()

TODO place it somewhere else

public static getBFileId(mixed $fileId) : bool|int
Parameters
$fileId : mixed
Tags
throws
ArgumentException
throws
NotImplementedException
throws
ObjectPropertyException
throws
SystemException
Return values
bool|int

getById()

public static getById(mixed $id) : EO_File_Result
Parameters
$id : mixed
Return values
EO_File_Result

getByPrimary()

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_Result

getContent()

public static getContent(mixed $id) : bool|string
Parameters
$id : mixed
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool|string

getEntity()

public static getEntity() : EO_File_Entity
Return values
EO_File_Entity

getList()

public static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_File_Result
Parameters
$parameters : array<string|int, mixed> = = '[]'
Return values
EO_File_Result

getMap()

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|int

getSize()

public static getSize(mixed $id) : false|int
Parameters
$id : mixed
Return values
false|int

getTableName()

Returns DB table name for entity.

public static getTableName() : string
Return values
string

onBeforeDelete()

public static onBeforeDelete(Event $event) : EventResult
Parameters
$event : Event
Return values
EventResult

query()

public static query() : EO_File_Query
Return values
EO_File_Query

saveFile()

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
throws
Exception
Return values
AddResult|Result

updateContent()

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
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
throws
Exception

wakeUpCollection()

public static wakeUpCollection(mixed $rows) : EO_File_Collection
Parameters
$rows : mixed
Return values
EO_File_Collection

wakeUpObject()

public static wakeUpObject(mixed $row) : EO_File
Parameters
$row : mixed
Return values
EO_File

        
On this page

Search results