Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс FileItem
+ Граф наследования:FileItem:

Открытые члены

 __construct ($diskFile, ?int $chatId=null)
 
 setDiskFile (File $diskFile)
 
 getDiskFile ()
 
 getDiskFileId ()
 
 getChatId ()
 
 setChatId (?int $chatId)
 
 getCopy (?Storage $storage=null)
 
 getCopyToChat (Chat $chat)
 
 getPopupData (array $excludedList=[])
 
 toRestFormat (array $option=[])
 
 getContentType ()
 
 setContentType (string $contentType)
 
 getId ()
 

Открытые статические члены

static getRestEntityName ()
 
static initByDiskFileId (int $diskFileId, ?int $chatId=null)
 

Защищенные данные

int $chatId = null
 
int $diskFileId = null
 
File $diskFile = null
 
string $contentType = null
 

Подробное описание

См. определение в файле FileItem.php строка 22

Конструктор(ы)

◆ __construct()

__construct ( $diskFile,
?int $chatId = null )
Аргументы
int | File$diskFile
int | null$chatId

См. определение в файле FileItem.php строка 35

Методы

◆ getChatId()

getChatId ( )

См. определение в файле FileItem.php строка 96

◆ getContentType()

getContentType ( )

Method for getting file type like in old api

См. также
\CIMDisk::GetFileParams
Возвращает
string

См. определение в файле FileItem.php строка 206

◆ getCopy()

getCopy ( ?Storage $storage = null)

См. определение в файле FileItem.php строка 107

◆ getCopyToChat()

getCopyToChat ( Chat $chat)

См. определение в файле FileItem.php строка 141

◆ getDiskFile()

getDiskFile ( )

См. определение в файле FileItem.php строка 76

◆ getDiskFileId()

getDiskFileId ( )

См. определение в файле FileItem.php строка 86

◆ getId()

getId ( )

Returns the id of the entity

Возвращает
int|null

Замещает Entity.

См. определение в файле FileItem.php строка 379

◆ getPopupData()

getPopupData ( array $excludedList = [])

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

См. также
RestAdapter::toRestFormat()
Аргументы
string[]$excludedList
Возвращает
PopupData

Замещает PopupDataAggregatable.

См. определение в файле FileItem.php строка 173

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

См. определение в файле FileItem.php строка 51

◆ initByDiskFileId()

static initByDiskFileId ( int $diskFileId,
?int $chatId = null )
static

См. определение в файле FileItem.php строка 56

◆ setChatId()

setChatId ( ?int $chatId)

См. определение в файле FileItem.php строка 101

◆ setContentType()

setContentType ( string $contentType)

См. определение в файле FileItem.php строка 233

◆ setDiskFile()

setDiskFile ( File $diskFile)

См. определение в файле FileItem.php строка 68

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

См. определение в файле FileItem.php строка 178

Данные класса

◆ $chatId

int $chatId = null
protected

См. определение в файле FileItem.php строка 26

◆ $contentType

string $contentType = null
protected

См. определение в файле FileItem.php строка 29

◆ $diskFile

File $diskFile = null
protected

См. определение в файле FileItem.php строка 28

◆ $diskFileId

int $diskFileId = null
protected

См. определение в файле FileItem.php строка 27