1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
phonenumber.php
См. документацию.
1
<?php
8
namespace
Bitrix\Main\Controller;
9
10
use Bitrix\Main;
11
12
class
PhoneNumber
extends
Main\Engine\Controller
13
{
14
public
function
getCountriesAction
()
15
{
16
$countries = GetCountries();
17
$defaultCountry =
Main\PhoneNumber\Parser::getDefaultCountry
();
18
usort($countries,
function
(
$a
, $b) use ($defaultCountry)
19
{
20
return
(
$a
[
'CODE'
] === $defaultCountry) ? -1 :
$a
[
'NAME'
] <=> $b[
'NAME'
];
21
});
22
return
$countries;
23
}
24
25
public
function
configureActions
()
26
{
27
return
[
28
'getCountries'
=> [
29
'-prefilters'
=> [
30
Main\Engine\ActionFilter\Authentication::class,
31
],
32
],
33
];
34
}
35
}
Bitrix\Main\Controller\PhoneNumber\configureActions
configureActions()
Определения
phonenumber.php:25
Bitrix\Main\Controller\PhoneNumber\getCountriesAction
getCountriesAction()
Определения
phonenumber.php:14
Bitrix\Main\PhoneNumber\Parser\getDefaultCountry
static getDefaultCountry()
Определения
parser.php:92
Bitrix\Main\Controller
Определения
agreement.php:2
Bitrix\Main\PhoneNumber
Определения
format.php:3
$a
else $a
Определения
template.php:137
bitrix
modules
main
lib
controller
phonenumber.php
Создано системой
1.14.0