Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
source.php
1
<?php
2
3
namespace
Bitrix\Location\Controller
;
4
5
use
Bitrix\Location\Infrastructure\Service\ErrorService
;
6
use
Bitrix\Location\Service
;
7
use
Bitrix\Main\Engine\ActionFilter\Cors
;
8
14
class
Source
extends
\Bitrix\Main\Engine\Controller
15
{
16
protected
function
init
()
17
{
18
parent::init();
19
ErrorService::getInstance()->setThrowExceptionOnError(
true
);
20
}
21
22
protected
function
getDefaultPreFilters
()
23
{
24
return
[];
25
}
26
27
public
function
getPropsAction
(): array
28
{
29
$sourceCode =
''
;
30
$sourceParams = [];
31
32
if
($source = Service\SourceService::getInstance()->getSource())
33
{
34
$sourceCode = $source->getCode();
35
$sourceParams = $source->getJSParams();
36
}
37
38
return
[
39
'sourceCode'
=> $sourceCode,
40
'sourceParams'
=> $sourceParams
41
];
42
}
43
}
Bitrix\Location\Controller\Source
Definition
source.php:15
Bitrix\Location\Controller\Source\getDefaultPreFilters
getDefaultPreFilters()
Definition
source.php:22
Bitrix\Location\Controller\Source\init
init()
Definition
source.php:16
Bitrix\Location\Controller\Source\getPropsAction
getPropsAction()
Definition
source.php:27
Bitrix\Location\Infrastructure\Service\ErrorService
Definition
errorservice.php:21
Bitrix\Main\Engine\ActionFilter\Cors
Definition
cors.php:13
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Location\Controller
Definition
address.php:3
Bitrix\Location\Service
Definition
addressservice.php:3
modules
location
lib
controller
source.php
Создано системой
1.10.0