1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
source.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Controller;
4
5use Bitrix\Location\Infrastructure\Service\ErrorService;
6use Bitrix\Location\Service;
7use Bitrix\Main\Engine\ActionFilter\Cors;
8
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}
static getInstance()
Определения baseservice.php:21
getDefaultPreFilters()
Определения source.php:22
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804