См. определение в файле FileItem.php строка 22
◆ __construct()
__construct |
( |
| $diskFile, |
|
|
?int | $chatId = null ) |
- Аргументы
-
int | File | $diskFile | |
int | null | $chatId | |
См. определение в файле FileItem.php строка 35
◆ getChatId()
◆ getContentType()
Method for getting file type like in old api
- См. также
- \CIMDisk::GetFileParams
- Возвращает
- string
См. определение в файле FileItem.php строка 206
◆ getCopy()
getCopy |
( |
?Storage | $storage = null | ) |
|
◆ getCopyToChat()
getCopyToChat |
( |
Chat | $chat | ) |
|
◆ getDiskFile()
◆ getDiskFileId()
◆ 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()
- Аргументы
-
- Возвращает
- 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 |
◆ setChatId()
setChatId |
( |
?int | $chatId | ) |
|
◆ setContentType()
setContentType |
( |
string | $contentType | ) |
|
◆ setDiskFile()
setDiskFile |
( |
File | $diskFile | ) |
|
◆ toRestFormat()
toRestFormat |
( |
array | $option = [] | ) |
|
Returns an array in JSON like format to return the entity as a rest response.
- Аргументы
-
- Возвращает
- array
Замещает RestConvertible.
См. определение в файле FileItem.php строка 178
◆ $chatId
◆ $contentType
string $contentType = null |
|
protected |
◆ $diskFile
◆ $diskFileId