8namespace Bitrix\Sale\Location\Name;
11use Bitrix\Main\Entity;
12use Bitrix\Sale\Location;
13use Bitrix\Main\Localization\Loc;
15Loc::loadMessages(__FILE__);
42 return 'b_sale_loc_name';
47 if(
$data[
'NAME'] <>
'')
49 $data[
'NAME_UPPER'] = mb_strtoupper(
$data[
'NAME']);
51 if(!isset(
$data[
'NAME_NORM']) && isset(
$data[
'LANGUAGE_ID']))
57 return parent::add(
$data);
62 if(
$data[
'NAME'] <>
'')
64 $data[
'NAME_UPPER'] = mb_strtoupper(
$data[
'NAME']);
66 if(!isset(
$data[
'NAME_NORM']) && isset(
$data[
'LANGUAGE_ID']))
72 return parent::update($primary,
$data);
85 'data_type' =>
'integer',
87 'autocomplete' =>
true,
90 'data_type' =>
'string',
92 'title' => Loc::getMessage(
'SALE_LOCATION_NAME_LOCATION_ENTITY_NAME_FIELD')
94 'NAME_UPPER' =>
array(
95 'data_type' =>
'string',
97 'SHORT_NAME' =>
array(
98 'data_type' =>
'string',
99 'title' => Loc::getMessage(
'SALE_LOCATION_NAME_LOCATION_ENTITY_SHORT_NAME_FIELD')
101 'NAME_NORM' =>
array(
102 'data_type' =>
'string',
104 'LANGUAGE_ID' =>
array(
105 'data_type' =>
'string',
107 'title' => Loc::getMessage(
'SALE_LOCATION_NAME_LOCATION_ENTITY_LANGUAGE_ID_FIELD')
110 'LOCATION_ID' =>
array(
111 'data_type' =>
'integer',
113 'title' => Loc::getMessage(
'SALE_LOCATION_NAME_LOCATION_ENTITY_LOCATION_ID_FIELD')
116 'data_type' =>
'Bitrix\Sale\Location\Location',
118 'reference' =>
array(
119 '=this.LOCATION_ID' =>
'ref.ID'
124 'data_type' =>
'integer',
125 'expression' =>
array(
static getReferenceFieldName()
static update($primary, array $data)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)