- Модуль: clouds
- Путь к файлу: ~/bitrix/modules/clouds/lib/filesave.php
- Класс: BitrixCloudsFileSaveTable
- Вызов: FileSaveTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('FILE_SAVE_ENTITY_ID_FIELD'),
),
'TIMESTAMP_X' => array(
'data_type' => 'datetime',
'required' => true,
'title' => Loc::getMessage('FILE_SAVE_ENTITY_TIMESTAMP_X_FIELD'),
),
'BUCKET_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('FILE_SAVE_ENTITY_BUCKET_ID_FIELD'),
),
'SUBDIR' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateSubdir'),
'title' => Loc::getMessage('FILE_SAVE_ENTITY_SUBDIR_FIELD'),
),
'FILE_NAME' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateFileName'),
'title' => Loc::getMessage('FILE_SAVE_ENTITY_FILE_NAME_FIELD'),
),
'EXTERNAL_ID' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateExternalId'),
'title' => Loc::getMessage('FILE_SAVE_ENTITY_EXTERNAL_ID_FIELD'),
),
'FILE_SIZE' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('FILE_SAVE_ENTITY_FILE_SIZE_FIELD'),
),
);
}