Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
crimeadispute.php
1
<?php
2
3
namespace
Bitrix\Location\Infrastructure\Service\DisputedAreaService
;
4
5
use
Bitrix\Main\IO\Path
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
Loc::loadMessages
(__FILE__);
9
Loc::loadMessages
(Path::combine(__DIR__,
'dispute.php'
));
10
11
class
CrimeaDispute
extends
Dispute
12
{
16
protected
function
getInfo
(): array
17
{
18
if
(in_array($this->currentRegion, [
'ru'
,
'by'
],
true
))
19
{
20
$country =
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_RUSSIA'
);
21
$state =
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_REGION_CRIMEA_FOR_RUSSIA'
);
22
}
23
else
24
{
25
$country =
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_UKRAINE'
);
26
$state =
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_REGION_CRIMEA_FOR_UKRAINE'
);
27
}
28
29
return
[
30
'country'
=> $country,
31
'state'
=> $state,
32
];
33
}
34
}
Bitrix\Location\Infrastructure\Service\DisputedAreaService\CrimeaDispute
Definition
crimeadispute.php:12
Bitrix\Location\Infrastructure\Service\DisputedAreaService\CrimeaDispute\getInfo
getInfo()
Definition
crimeadispute.php:16
Bitrix\Location\Infrastructure\Service\DisputedAreaService\Dispute
Definition
dispute.php:12
Bitrix\Main\IO\Path
Definition
path.php:11
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Location\Infrastructure\Service\DisputedAreaService
Definition
crimeadispute.php:3
modules
location
lib
infrastructure
service
disputedareaservice
crimeadispute.php
Создано системой
1.10.0