- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/finderdest.php
- Класс: BitrixMainFinderDestTable
- Вызов: FinderDestTable::getMap
static function getMap()
{
global $USER;
return array(
'USER_ID' => array(
'data_type' => 'integer',
'primary' => true
),
new EntityReferenceField(
'USER',
'BitrixMainUserTable',
array('=this.USER_ID' => 'ref.ID')
),
'CODE' => array(
'data_type' => 'string',
'primary' => true
),
'CODE_USER_ID' => array(
'data_type' => 'integer'
),
'CODE_TYPE' => array(
'data_type' => 'string'
),
new EntityReferenceField(
'CODE_USER',
'BitrixMainUserTable',
array('=this.CODE_USER_ID' => 'ref.ID')
),
new EntityReferenceField(
'CODE_USER_CURRENT',
'BitrixMainUserTable',
array(
'=this.CODE_USER_ID' => 'ref.ID',
'=this.USER_ID' => new SqlExpression('?i', $USER->GetId())
)
),
'CONTEXT' => array(
'data_type' => 'string',
'primary' => true
),
'LAST_USE_DATE' => array(
'data_type' => 'datetime'
)
);
}