• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/editsession.php
  • Класс: BitrixDiskInternalsEditSessionTable
  • Вызов: EditSessionTable::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'
			),
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'OWNER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'IS_EXCLUSIVE' => array(
			'data_type' => 'boolean',
			'values' => array(0, 1),
			'default_value' => 0,
		),
		'SERVICE' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateService'),
		),
		'SERVICE_FILE_ID' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateServiceFileId'),
		),
		'SERVICE_FILE_LINK' => array(
			'data_type' => 'text',
			'required' => true,
		),
		'CREATE_TIME' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => function() {
				return new DateTime();
			},
		),
	);
}