1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
regionfinder.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Common;
4
5
use Bitrix\Main\Loader;
6
11
class
RegionFinder
12
{
17
public
static
function
getCurrentRegion
(): string
18
{
19
$result
=
null
;
20
21
if
(Loader::includeModule(
'bitrix24'
))
22
{
23
$licensePrefix
= \CBitrix24::getLicensePrefix();
24
if
(
$licensePrefix
!==
false
)
25
{
26
$result
= (string)
$licensePrefix
;
27
}
28
}
29
elseif
(Loader::includeModule(
'intranet'
))
30
{
31
$result
= (string)\CIntranetUtils::getPortalZone();
32
}
33
elseif
(defined(
'LANGUAGE_ID'
))
34
{
35
$result
= LANGUAGE_ID;
36
}
37
38
if
(!
$result
)
39
{
40
$result
=
'en'
;
41
}
42
43
return
$result
;
44
}
45
}
Bitrix\Location\Common\RegionFinder
Определения
regionfinder.php:12
Bitrix\Location\Common\RegionFinder\getCurrentRegion
static getCurrentRegion()
Определения
regionfinder.php:17
$result
$result
Определения
get_property_values.php:14
$licensePrefix
$licensePrefix
Определения
.description.php:15
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
location
lib
common
regionfinder.php
Создано системой
1.14.0