- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/location/name/type.php
- Класс: Bitrix\Sale\Location\Name\TypeTable
- Вызов: TypeTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
),
'NAME' => array(
'data_type' => 'string',
'required' => true,
'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_NAME_FIELD')
),
'LANGUAGE_ID' => array(
'data_type' => 'string',
'required' => true,
'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_LANGUAGE_ID_FIELD')
),
'TYPE_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('SALE_LOCATION_NAME_TYPE_ENTITY_SHORT_TYPE_ID_FIELD')
),
'TYPE' => array(
'data_type' => '\Bitrix\Sale\Location\Type',
'required' => true,
'reference' => array(
'=this.TYPE_ID' => 'ref.ID'
)
),
'CNT' => array(
'data_type' => 'integer',
'expression' => array(
'count(*)'
)
),
);
}