...Человеческий поиск в разработке...
- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/model/recent.php
- Класс: BitrixImModelRecentTable
- Вызов: RecentTable::getMap
static function getMap() { return array( 'USER_ID' => array( 'data_type' => 'integer', 'primary' => true, 'title' => Loc::getMessage('RECENT_ENTITY_USER_ID_FIELD'), ), 'ITEM_TYPE' => array( 'data_type' => 'string', 'primary' => true, 'validation' => array(__CLASS__, 'validateItemType'), 'title' => Loc::getMessage('RECENT_ENTITY_ITEM_TYPE_FIELD'), ), 'ITEM_ID' => array( 'data_type' => 'integer', 'primary' => true, 'title' => Loc::getMessage('RECENT_ENTITY_ITEM_ID_FIELD'), ), 'ITEM_MID' => array( 'data_type' => 'integer', 'default_value' => 0, 'title' => Loc::getMessage('RECENT_ENTITY_ITEM_MID_FIELD'), ), 'ITEM_CID' => array( 'data_type' => 'integer', 'default_value' => 0, ), 'ITEM_RID' => array( 'data_type' => 'integer', 'default_value' => 0, ), 'ITEM_OLID' => array( 'data_type' => 'integer', 'default_value' => 0, ), 'PINNED' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'default_value' => 'N', ), 'UNREAD' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'default_value' => 'N', ), 'DATE_MESSAGE' => array( 'data_type' => 'datetime', 'required' => true, 'default_value' => array(__CLASS__, 'getCurrentDate'), ), 'DATE_UPDATE' => array( 'data_type' => 'datetime', 'required' => true, 'default_value' => array(__CLASS__, 'getCurrentDate'), ), 'RELATION' => array( 'data_type' => 'BitrixImModelRelationTable', 'reference' => array('=this.ITEM_RID' => 'ref.ID'), 'join_type' => 'LEFT', ), 'CHAT' => array( 'data_type' => 'BitrixImModelChatTable', 'reference' => array('=this.ITEM_CID' => 'ref.ID'), 'join_type' => 'LEFT', ), 'MESSAGE' => array( 'data_type' => 'BitrixImModelMessageTable', 'reference' => array('=this.ITEM_MID' => 'ref.ID'), 'join_type' => 'LEFT', ), 'MESSAGE_UUID' => array( 'data_type' => 'BitrixImModelMessageUuidTable', 'reference' => array('=this.ITEM_MID' => 'ref.MESSAGE_ID'), 'join_type' => 'LEFT', ), 'MARKED_ID' => array( 'data_type' => 'integer', 'default_value' => 0, ), ); }