• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/defaultsite.php
  • Класс: BitrixSaleLocationDefaultSiteTable
  • Вызов: DefaultSiteTable::getMap
static function getMap()
{
	return array(

		'SORT' => array(
			'data_type' => 'integer',
			'title' => Loc::getMessage('SALE_LOCATION_DEFAULTSITE_ENTITY_SORT_FIELD'),
			'default_value' => '100'
		),
		'LOCATION_CODE' => array(
			'data_type' => 'string',
			'required' => true,
			'primary' => true,
			'title' => Loc::getMessage('SALE_LOCATION_DEFAULTSITE_ENTITY_LOCATION_ID_FIELD')
		),
		'SITE_ID' => array(
			'data_type' => 'string',
			'required' => true,
			'primary' => true,
			'title' => Loc::getMessage('SALE_LOCATION_DEFAULTSITE_ENTITY_SITE_ID_FIELD')
		),

		// virtual
		'LOCATION' => array(
			'data_type' => 'BitrixSaleLocationLocation',
			'reference' => array(
				'=this.LOCATION_CODE' => 'ref.CODE'
			)
		),

		'SITE' => array(
			'data_type' => 'BitrixMainSite',
			'reference' => array(
				'=this.SITE_ID' => 'ref.LID'
			)
		)
	);
}