Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
phonenumber.php:13
Bitrix\Main\Controller\PhoneNumber\configureActions
configureActions()
Definition
phonenumber.php:25
Bitrix\Main\Controller\PhoneNumber\getCountriesAction
getCountriesAction()
Definition
phonenumber.php:14
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Controller
Definition
agreement.php:2
Bitrix\Main
modules
main
lib
controller
phonenumber.php
Создано системой
1.10.0