1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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\Common\BaseService\getInstance
static getInstance()
Определения
baseservice.php:21
Bitrix\Location\Controller\Source\getDefaultPreFilters
getDefaultPreFilters()
Определения
source.php:22
Bitrix\Location\Controller\Source\init
init()
Определения
source.php:16
Bitrix\Location\Controller\Source\getPropsAction
getPropsAction()
Определения
source.php:27
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Location\Entity\Source
Определения
config.php:3
Bitrix\Main\Controller
Определения
agreement.php:2
Bitrix\Main\Service
bitrix
modules
location
lib
controller
source.php
Создано системой
1.14.0