• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/cloudimport.php
  • Класс: BitrixDiskInternalsCloudImportTable
  • Вызов: CloudImportTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'OBJECT_ID' => array(
			'data_type' => 'integer',
		),
		'OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsFileTable',
			'reference' => array(
				'=this.OBJECT_ID' => 'ref.ID'
			),
		),
		'VERSION_ID' => array(
			'data_type' => 'integer',
		),
		'VERSION' => array(
			'data_type' => 'BitrixDiskInternalsVersionTable',
			'reference' => array(
				'=this.OBJECT_ID' => 'ref.ID'
			),
		),
		'TMP_FILE_ID' => array(
			'data_type' => 'integer',
		),
		'TMP_FILE' => array(
			'data_type' => 'BitrixDiskInternalsTmpFileTable',
			'reference' => array(
				'=this.TMP_FILE_ID' => 'ref.ID'
			),
		),
		'DOWNLOADED_CONTENT_SIZE' => array(
			'data_type' => 'integer',
			'default_value' => 0,
		),
		'CONTENT_SIZE' => array(
			'data_type' => 'integer',
			'default_value' => 0,
		),
		'CONTENT_URL' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateContentUrl'),
		),
		'MIME_TYPE' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateMimeType'),
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array(
				'=this.USER_ID' => 'ref.ID'
			),
		),
		'SERVICE' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateService'),
		),
		'SERVICE_OBJECT_ID' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'ETAG' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateEtag'),
		),
		'CREATE_TIME' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => function() {
				return new DateTime();
			},
		),
	);
}