Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
2
4
7
12abstract class Base extends Engine\ActionFilter\Base
13{
18 public function listAllowedScopes()
19 {
20 return [
22 ];
23 }
24
28 protected function getRestServer()
29 {
30 $restServer = null;
31 $sourceParametersList = $this->getAction()->getController()->getSourceParametersList();
32 foreach ($sourceParametersList as $list)
33 {
34 foreach ($list as $name => $parameter)
35 {
36 if ($parameter instanceof \CRestServer)
37 {
38 $restServer = $parameter;
39 break;
40 }
41 }
42 }
43
44 return $restServer;
45 }
46}