Channel::getMap

  1. Bitrix24 API (v. 23.675.0)
  2. vote
  3. Channel
  4. getMap
  • Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/channel.php
  • Класс: BitrixVoteChannel
  • Вызов: Channel::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
			'title' => Loc::getMessage('V_TABLE_FIELD_ID'),
		),
		'SYMBOLIC_NAME' => array(
			'data_type' => 'string',
			'size' => 255,
			'title' => Loc::getMessage('V_TABLE_FIELD_SYMBOLIC_NAME'),
		),
		'TITLE' => array(
			'data_type' => 'string',
			'size' => 255,
			'title' => Loc::getMessage('V_TABLE_FIELD_TITLE'),
		),
		'C_SORT' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('V_TABLE_FIELD_C_SORT'),
		),
		'ACTIVE' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'Y',
			'title' => Loc::getMessage('V_TABLE_FIELD_ACTIVE')
		),
		'HIDDEN' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'N',
			'title' => Loc::getMessage('V_TABLE_FIELD_HIDDEN')
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
			'title' => Loc::getMessage('V_TABLE_FIELD_TIMESTAMP_X'),
		),
		'VOTE_SINGLE' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'Y',
			'title' => Loc::getMessage('V_TABLE_FIELD_ACTIVE')
		),
		'USE_CAPTCHA' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
			'default_value' => 'N',
			'title' => Loc::getMessage('V_TABLE_FIELD_HIDDEN')
		),
		'PERMISSION' => array(
			'data_type' => 'BitrixVoteChannelGroupTable',
			'reference' => array(
				'=this.ID' => 'ref.CHANNEL_ID',
			),
			'join_type' => 'INNER',
		),
		'SITE' => array(
			'data_type' => 'BitrixVoteChannelSiteTable',
			'reference' => array(
				'=this.ID' => 'ref.CHANNEL_ID',
			),
			'join_type' => 'LEFT',
		)
	);
}

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