- Модуль: vote
- Путь к файлу: ~/bitrix/modules/vote/lib/user.php
- Класс: BitrixVoteUserTable
- Вызов: UserTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('V_TABLE_FIELD_ID'),
),
'COOKIE_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('V_TABLE_FIELD_AUTH_USER_ID'),
),
'AUTH_USER_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('V_TABLE_FIELD_AUTH_USER_ID'),
),
'COUNTER' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('V_TABLE_FIELD_COUNTER'),
),
'DATE_FIRST' => array(
'data_type' => 'datetime',
'title' => Loc::getMessage('V_TABLE_FIELD_DATE_FIRST'),
),
'DATE_LAST' => array(
'data_type' => 'datetime',
'title' => Loc::getMessage('V_TABLE_FIELD_DATE_LAST'),
),
'LAST_IP' => array(
'data_type' => 'string',
'size' => 15,
'title' => Loc::getMessage('V_TABLE_FIELD_STAT_SESSION_ID')
),
'STAT_GUEST_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('V_TABLE_FIELD_STAT_GUEST_ID'),
),
'USER' => array(
'data_type' => 'BitrixMainUserTable',
'reference' => array(
'=this.AUTH_USER_ID' => 'ref.ID',
),
'join_type' => 'LEFT',
),
);
}