См. определение в файле FileItem.php строка 17
◆ __construct()
__construct |
( |
| $source = null | ) |
|
- Аргументы
-
int | array | EO_LinkFile | null | $source | |
См. определение в файле FileItem.php строка 45
◆ calculateSubtype()
◆ fillFile()
◆ getByDiskFileId()
static getByDiskFileId |
( |
int | $diskFileId | ) |
|
|
static |
◆ getDataClass()
◆ getEntity()
- Возвращает
- Entity|\Bitrix\Im\V2\Entity\File\FileItem
Переопределяет метод предка BaseLinkItem.
См. определение в файле FileItem.php строка 205
◆ getEntityClassName()
static getEntityClassName |
( |
| ) |
|
|
static |
◆ getEntityIdFieldName()
static getEntityIdFieldName |
( |
| ) |
|
|
staticprotected |
◆ 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
Переопределяет метод предка BaseLinkItem.
См. определение в файле FileItem.php строка 227
◆ getRestEntityName()
static getRestEntityName |
( |
| ) |
|
|
static |
Returns the name of the entity that will be used in the rest response
- Возвращает
- string
Замещает RestConvertible.
См. определение в файле FileItem.php строка 90
◆ getSubtype()
◆ getSubtypeByDiskFileType()
getSubtypeByDiskFileType |
( |
string | $diskFileType | ) |
|
|
protected |
◆ getSubtypeFromJsonFormat()
static getSubtypeFromJsonFormat |
( |
string | $subtypeInJsonFormat | ) |
|
|
static |
◆ isSubtypeValid()
static isSubtypeValid |
( |
string | $subtype | ) |
|
|
static |
◆ mirrorDataEntityFields()
static mirrorDataEntityFields |
( |
| ) |
|
|
staticprotected |
- См. также
- FileItem::setSubtype
-
FileItem::getSubtype
-
FileItem::validateSubtype
Переопределяет метод предка BaseLinkItem.
См. определение в файле FileItem.php строка 237
◆ save()
◆ setChatId()
◆ setEntity()
◆ setSubtype()
setSubtype |
( |
string | $subtype | ) |
|
◆ toRestFormat()
toRestFormat |
( |
array | $option = [] | ) |
|
Returns an array in JSON like format to return the entity as a rest response.
- Аргументы
-
- Возвращает
- array
Переопределяет метод предка BaseLinkItem.
См. определение в файле FileItem.php строка 251
◆ validateSubtype()
◆ $migrationOptionName
string $migrationOptionName = 'im_link_file_migration' |
|
staticprotected |
◆ $subtype
◆ ALLOWED_SUBTYPE
Инициализатор= [
self::MEDIA_SUBTYPE,
self::AUDIO_SUBTYPE,
self::BRIEF_SUBTYPE,
self::OTHER_SUBTYPE,
self::DOCUMENT_SUBTYPE,
]
См. определение в файле FileItem.php строка 27
◆ AUDIO_SUBTYPE
const AUDIO_SUBTYPE = 'AUDIO' |
◆ BRIEF_CODE
const BRIEF_CODE = 'resume' |
◆ BRIEF_SUBTYPE
const BRIEF_SUBTYPE = 'BRIEF' |
◆ DOCUMENT_SUBTYPE
const DOCUMENT_SUBTYPE = 'DOCUMENT' |
◆ MEDIA_ORIGINAL_CODE
const MEDIA_ORIGINAL_CODE = 'media_original' |
◆ MEDIA_SUBTYPE
const MEDIA_SUBTYPE = 'MEDIA' |
◆ OTHER_SUBTYPE
const OTHER_SUBTYPE = 'OTHER' |