Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sevastopoldispute.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
(Path::combine(__DIR__,
'scenario.php'
));
9
10
class
SevastopolDispute
extends
Dispute
11
{
15
protected
function
getInfo
(): array
16
{
17
$country = in_array($this->currentRegion, [
'ru'
,
'by'
],
true
)
18
?
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_RUSSIA'
)
19
:
Loc::getMessage
(
'LOCATION_ISTRUCTURE_DISPSRV_UKRAINE'
);
20
21
return
[
22
'country'
=> $country,
23
];
24
}
25
}
Bitrix\Location\Infrastructure\Service\DisputedAreaService\Dispute
Definition
dispute.php:12
Bitrix\Location\Infrastructure\Service\DisputedAreaService\SevastopolDispute
Definition
sevastopoldispute.php:11
Bitrix\Location\Infrastructure\Service\DisputedAreaService\SevastopolDispute\getInfo
getInfo()
Definition
sevastopoldispute.php:15
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
sevastopoldispute.php
Создано системой
1.10.0