- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/location/group.php
- Класс: Bitrix\Sale\Location\GroupTable
- Вызов: GroupTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'CODE' => array(
'data_type' => 'string',
'required' => true,
'title' => Loc::getMessage('SALE_LOCATION_GROUP_ENTITY_CODE_FIELD'),
'validation' => array(__CLASS__, 'getCodeValidators')
),
'SORT' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('SALE_LOCATION_GROUP_ENTITY_SORT_FIELD'),
'default_value' => '100'
),
// virtual
'NAME' => array(
'data_type' => '\Bitrix\Sale\Location\Name\Group',
'reference' => array(
'=this.ID' => 'ref.LOCATION_GROUP_ID'
)
),
'LOCATION' => array(
'data_type' => '\Bitrix\Sale\Location\Location',
'reference' => array(
'=this.ID' => 'ref.LOCATION_GROUP_ID'
)
)
);
}