• Модуль: clouds
  • Путь к файлу: ~/bitrix/modules/clouds/lib/copyqueue.php
  • Класс: BitrixCloudsCopyQueueTable
  • Вызов: CopyQueueTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_ID_FIELD'),
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
			'required' => true,
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TIMESTAMP_X_FIELD'),
		),
		'OP' => array(
			'data_type' => 'enum',
			'values' => array('C', 'R', 'S'),
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_OP_FIELD'),
		),
		'SOURCE_BUCKET_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_SOURCE_BUCKET_ID_FIELD'),
		),
		'SOURCE_FILE_PATH' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateSourceFilePath'),
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_SOURCE_FILE_PATH_FIELD'),
		),
		'TARGET_BUCKET_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TARGET_BUCKET_ID_FIELD'),
		),
		'TARGET_FILE_PATH' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateTargetFilePath'),
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_TARGET_FILE_PATH_FIELD'),
		),
		'FILE_SIZE' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FILE_SIZE_FIELD'),
		),
		'FILE_POS' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FILE_POS_FIELD'),
		),
		'FAIL_COUNTER' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_FAIL_COUNTER_FIELD'),
		),
		'STATUS' => array(
			'data_type' => 'enum',
			'values' => array('Y', 'F'),
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_STATUS_FIELD'),
		),
		'ERROR_MESSAGE' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateErrorMessage'),
			'title' => Loc::getMessage('COPY_QUEUE_ENTITY_ERROR_MESSAGE_FIELD'),
		),
		'SOURCE_BUCKET' => array(
			'data_type' => 'Bitrix\Clouds\FileBucket',
			'reference' => array('=this.SOURCE_BUCKET_ID' => 'ref.ID'),
		),
		'TARGET_BUCKET' => array(
			'data_type' => 'Bitrix\Clouds\FileBucket',
			'reference' => array('=this.TARGET_BUCKET_ID' => 'ref.ID'),
		),
	);
}