• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/sharing.php
  • Класс: BitrixDiskInternalsSharingTable
  • Вызов: SharingTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'CREATED_BY' => array(
			'data_type' => 'integer',
		),
		'CREATE_USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array(
				'=this.CREATED_BY' => 'ref.ID'
			),
		),
		'TO_ENTITY' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'FROM_ENTITY' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'PARENT_ID' => array(
			'data_type' => 'integer',
		),
		'LINK_OBJECT_ID' => array(
			'data_type' => 'integer',
		),
		'LINK_STORAGE_ID' => array(
			'data_type' => 'integer',
		),
		'LINK_STORAGE' => array(
			'data_type' => 'BitrixDiskInternalsStorageTable',
			'reference' => array(
				'=this.LINK_STORAGE_ID' => 'ref.ID'
			),
		),
		'LINK_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectTable',
			'reference' => array(
				'=this.LINK_OBJECT_ID' => 'ref.ID'
			),
		),
		'REAL_STORAGE_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'REAL_STORAGE' => array(
			'data_type' => 'BitrixDiskInternalsStorageTable',
			'reference' => array(
				'=this.REAL_STORAGE_ID' => 'ref.ID'
			),
		),
		'REAL_OBJECT_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'REAL_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectTable',
			'reference' => array(
				'=this.REAL_OBJECT_ID' => 'ref.ID'
			),
		),
		'DESCRIPTION' => array(
			'data_type' => 'text',
		),
		'CAN_FORWARD' => array(
			'data_type' => 'boolean',
			'values' => array(0, 1),
			'default_value' => 0,
		),
		'TYPE' => array(
			'data_type' => 'enum',
			'required' => true,
			'values' => self::getListOfTypeValues(),
		),
		'STATUS' => array(
			'data_type' => 'enum',
			'values' => self::getListOfStatusValues(),
			'default_value' => self::STATUS_IS_UNREPLIED,
		),
		'TASK_NAME' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'PATH_PARENT_REAL_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectPathTable',
			'reference' => array(
				'=this.REAL_OBJECT_ID' => 'ref.PARENT_ID'
			),
			'join_type' => 'INNER',
		),
		'PATH_CHILD_REAL_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectPathTable',
			'reference' => array(
				'=this.REAL_OBJECT_ID' => 'ref.OBJECT_ID'
			),
			'join_type' => 'LEFT',
		),
		'PATH_CHILD_REAL_OBJECT_SOFT' => array(
			'data_type' => 'BitrixDiskInternalsObjectPathTable',
			'reference' => array(
				'=this.REAL_OBJECT_ID' => 'ref.OBJECT_ID'
			),
		),
		'PATH_PARENT_LINK_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectPathTable',
			'reference' => array(
				'=this.LINK_OBJECT_ID' => 'ref.PARENT_ID'
			),
			'join_type' => 'INNER',
		),
		'PATH_CHILD_LINK_OBJECT' => array(
			'data_type' => 'BitrixDiskInternalsObjectPathTable',
			'reference' => array(
				'=this.LINK_OBJECT_ID' => 'ref.OBJECT_ID'
			),
			'join_type' => 'INNER',
		),
	);
}