• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/placement.php
  • Класс: BitrixRestPlacementTable
  • Вызов: PlacementTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'APP_ID' => array(
			'data_type' => 'integer',
		),
		'USER_ID' => array(
			'data_type' => 'integer',
		),
		'PLACEMENT' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'PLACEMENT_HANDLER' => array(
			'data_type' => 'string',
			'required' => true,
		),
		/**
		 * @deprecated
		 * Use LANG.GROUP_NAME
		 */
		'GROUP_NAME' => array(
			'data_type' => 'string',
		),
		'ICON_ID' => array(
			'data_type' => 'integer',
		),
		/**
		 * @deprecated
		 * Use LANG.TITLE
		 */
		'TITLE' => array(
			'data_type' => 'string',
		),
		/**
		 * @deprecated
		 * Use LANG.DESCRIPTION
		 */
		'COMMENT' => array(
			'data_type' => 'string',
		),
		'DATE_CREATE' => array(
			'data_type' => 'datetime',
		),
		'ADDITIONAL' => array(
			'data_type' => 'string',
		),
		'OPTIONS' => new ArrayField('OPTIONS'),
		'REST_APP' => array(
			'data_type' => 'BitrixRestAppTable',
			'reference' => array('=this.APP_ID' => 'ref.ID'),
		),
		(new OneToMany(
			'LANG_ALL',
			BitrixRestPlacementLangTable::class,
			'PLACEMENT'
		))->configureJoinType('left'),
	);
}