Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
3
namespace
Bitrix\Rest\Engine\ActionFilter
;
4
5
use
Bitrix\Main\Engine
;
6
use
Bitrix\Main\Engine\Controller
;
7
12
abstract
class
Base
extends
Engine\ActionFilter\Base
13
{
18
public
function
listAllowedScopes
()
19
{
20
return
[
21
Controller::SCOPE_REST
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
}
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Engine\Controller\SCOPE_REST
const SCOPE_REST
Definition
controller.php:33
Bitrix\Rest\Engine\ActionFilter\Base
Definition
base.php:13
Bitrix\Rest\Engine\ActionFilter\Base\getRestServer
getRestServer()
Definition
base.php:28
Bitrix\Rest\Engine\ActionFilter\Base\listAllowedScopes
listAllowedScopes()
Definition
base.php:18
Bitrix\Main\Engine
Definition
action.php:3
Bitrix\Rest\Engine\ActionFilter
Definition
authtype.php:3
modules
rest
lib
engine
actionfilter
base.php
Создано системой
1.10.0