• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/deliverylocation.php
  • Класс: BitrixSaleDeliveryDeliveryLocationTable
  • Вызов: DeliveryLocationTable::getMap
static function getMap()
{
	return array(
		
		'DELIVERY_ID' => array(
			'data_type' => 'integer',
			'required' => true,
			'primary' => true
		),
		'LOCATION_CODE' => array(
			'data_type' => 'string',
			'required' => true,
			'primary' => true
		),
		'LOCATION_TYPE' => array(
			'data_type' => 'string',
			'default_value' => static::DB_LOCATION_FLAG,
			'required' => true,
			'primary' => true
		),

		// virtual
		'LOCATION' => array(
			'data_type' => 'BitrixSaleLocationLocation',
			'reference' => array(
				'=this.LOCATION_CODE' => 'ref.CODE',
				'=this.LOCATION_TYPE' => array('?', static::DB_LOCATION_FLAG)
			)
		),
		'GROUP' => array(
			'data_type' => 'BitrixSaleLocationGroup',
			'reference' => array(
				'=this.LOCATION_CODE' => 'ref.CODE',
				'=this.LOCATION_TYPE' => array('?', static::DB_GROUP_FLAG)
			)
		),

		'DELIVERY' => array(
			'data_type' => static::getTargetEntityName(),
			'reference' => array(
				'=this.DELIVERY_ID' => 'ref.ID'
			)
		),
	);
}