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

		'SITE_ID' => array(
			'data_type' => 'string',
			'required' => true,
			'primary' => true
		),
		'LOCATION_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'primary' => true
		),
		'LOCATION_TYPE' => array(
			'data_type' => 'string',
			'default_value' => self::DB_LOCATION_FLAG,
			'required' => true,
			'primary' => true
		),

		// virtual
		'LOCATION' => array(
			'data_type' => 'BitrixSaleLocationLocation',
			'reference' => array(
				'=this.LOCATION_ID' => 'ref.ID',
				'=this.LOCATION_TYPE' => array('?', self::DB_LOCATION_FLAG)
			),
			'join_type' => 'inner'
		),
		'GROUP' => array(
			'data_type' => 'BitrixSaleLocationGroup',
			'reference' => array(
				'=this.LOCATION_ID' => 'ref.ID',
				'=this.LOCATION_TYPE' => array('?', self::DB_GROUP_FLAG)
			)
		),

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

	);
}