1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
crimeacustomfields.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Infrastructure\Service\CustomFieldsService
;
4
5
use
Bitrix\Main\IO\Path
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
Loc::loadMessages(__FILE__);
9
Loc::loadMessages(Path::combine(__DIR__,
'customfields.php'
));
10
11
class
CrimeaCustomFields
extends
CustomFields
12
{
16
protected
function
getInfo
():
array
17
{
18
if
($this->currentRegion ===
'ru'
)
19
{
20
$country
= Loc::getMessage(
'LOCATION_ISTRUCTURE_CUSTOM_FIELDS_RUSSIA'
);
21
$state = Loc::getMessage(
'LOCATION_ISTRUCTURE_CUSTOM_FIELDS_REGION_CRIMEA_FOR_RUSSIA'
);
22
}
23
else
24
{
25
$country
= Loc::getMessage(
'LOCATION_ISTRUCTURE_CUSTOM_FIELDS_UKRAINE'
);
26
$state = Loc::getMessage(
'LOCATION_ISTRUCTURE_CUSTOM_FIELDS_REGION_CRIMEA_FOR_UKRAINE'
);
27
}
28
29
return
[
30
'country'
=>
$country
,
31
'state'
=> $state,
32
];
33
}
34
}
Bitrix\Location\Infrastructure\Service\CustomFieldsService\CrimeaCustomFields
Определения
crimeacustomfields.php:12
Bitrix\Location\Infrastructure\Service\CustomFieldsService\CrimeaCustomFields\getInfo
getInfo()
Определения
crimeacustomfields.php:16
Bitrix\Location\Infrastructure\Service\CustomFieldsService\CustomFields
Определения
customfields.php:12
Bitrix\Main\IO\Path
Определения
path.php:12
Bitrix\Main\Localization\Loc
Определения
loc.php:12
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Location\Infrastructure\Service\CustomFieldsService
Определения
crimeacustomfields.php:3
$country
$country
Определения
payment.php:59
bitrix
modules
location
lib
infrastructure
service
customfieldsservice
crimeacustomfields.php
Создано системой
1.14.0