RelationTable::getMap

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. RelationTable
  4. getMap
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/model/relation.php
  • Класс: BitrixImModelRelationTable
  • Вызов: RelationTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
			'title' => Loc::getMessage('RELATION_ENTITY_ID_FIELD'),
		),
		'CHAT_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'title' => Loc::getMessage('RELATION_ENTITY_CHAT_ID_FIELD'),
		),
		'MESSAGE_TYPE' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateMessageType'),
			'title' => Loc::getMessage('RELATION_ENTITY_MESSAGE_TYPE_FIELD'),
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'title' => Loc::getMessage('RELATION_ENTITY_USER_ID_FIELD'),
		),
		'START_ID' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_START_ID_FIELD'),
		),
		'LAST_ID' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_LAST_ID_FIELD'),
		),
		'UNREAD_ID' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_UNREAD_ID_FIELD'),
			'default' => 0
		),
		'LAST_SEND_ID' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_LAST_SEND_ID_FIELD'),
		),
		'LAST_FILE_ID' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_LAST_FILE_ID_FIELD'),
		),
		'LAST_READ' => array(
			'data_type' => 'datetime',
			'title' => Loc::getMessage('RELATION_ENTITY_LAST_READ_FIELD'),
		),
		'STATUS' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_STATUS_FIELD'),
		),
		'CALL_STATUS' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('RELATION_ENTITY_CALL_STATUS_FIELD'),
		),
		'MESSAGE_STATUS' => array(
			'data_type' => 'string',
			'default_value' => IM_MESSAGE_STATUS_RECEIVED,
			'validation' => array(__CLASS__, 'validateMessageStatus'),
		),
		'NOTIFY_BLOCK' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'title' => Loc::getMessage('RELATION_ENTITY_NOTIFY_BLOCK_FIELD'),
		),
		'MANAGER' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'N',
		),
		'COUNTER' => array(
			'data_type' => 'integer',
			'default_value' => 0,
		),
		'START_COUNTER' => array(
			'data_type' => 'integer',
			'default_value' => 0,
		),
		'CHAT' => array(
			'data_type' => 'BitrixImModelChatTable',
			'reference' => array('=this.CHAT_ID' => 'ref.ID'),
		),
		'START' => array(
			'data_type' => 'BitrixImModelMessageTable',
			'reference' => array('=this.START_ID' => 'ref.ID'),
		),
		'LAST_SEND' => array(
			'data_type' => 'BitrixImModelMessageTable',
			'reference' => array('=this.LAST_SEND_ID' => 'ref.ID'),
		),
		'LAST' => array(
			'data_type' => 'BitrixImModelMessageTable',
			'reference' => array('=this.LAST_ID' => 'ref.ID'),
		),
		'USER' => array(
			'data_type' => 'BitrixMainUser',
			'reference' => array('=this.USER_ID' => 'ref.ID'),
		),
	);
}

Добавить комментарий