- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/location/external.php
- Класс: BitrixSaleLocationExternalTable
- Вызов: ExternalTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'SERVICE_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('SALE_LOCATION_EXTERNAL_ENTITY_SERVICE_ID_FIELD')
),
'XML_ID' => array(
'data_type' => 'string',
'required' => true,
'title' => Loc::getMessage('SALE_LOCATION_EXTERNAL_ENTITY_XML_ID_FIELD')
),
'LOCATION_ID' => array(
'data_type' => 'integer',
'required' => true,
),
// virtual
'SERVICE' => array(
'data_type' => 'BitrixSaleLocationExternalService',
'reference' => array(
'=this.SERVICE_ID' => 'ref.ID'
)
),
'LOCATION' => array(
'data_type' => 'BitrixSaleLocationLocation',
'reference' => array(
'=this.LOCATION_ID' => 'ref.ID'
)
)
);
}