Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
fallbackaction.php
1
<?php
2
3
namespace
Bitrix\Main\Engine
;
4
5
final
class
FallbackAction
extends
Action
6
{
7
public
const
ACTION_NAME
=
'fallback'
;
8
public
const
ACTION_METHOD
=
'fallbackAction'
;
9
11
private
$originalActionName;
12
13
public
function
__construct
(
$name
,
Controller
$controller
,
$config
= [])
14
{
15
$this->originalActionName =
$name
;
16
parent::__construct(self::ACTION_NAME,
$controller
,
$config
);
17
}
18
19
protected
function
buildBinder
()
20
{
21
if
($this->binder ===
null
)
22
{
23
$controller
= $this->
getController
();
24
$this->binder = AutoWire\ControllerBinder::buildForMethod(
$controller
, self::ACTION_METHOD)
25
->setController(
$controller
)
26
->setSourcesParametersToMap([
27
[
'actionName'
=> $this->originalActionName]
28
])
29
;
30
}
31
32
return
$this;
33
}
34
}
Bitrix\Main\Engine\Action
Definition
action.php:17
Bitrix\Main\Engine\Action\$controller
$controller
Definition
action.php:23
Bitrix\Main\Engine\Action\$config
$config
Definition
action.php:25
Bitrix\Main\Engine\Action\getController
getController()
Definition
action.php:138
Bitrix\Main\Engine\Action\$name
$name
Definition
action.php:27
Bitrix\Main\Engine\FallbackAction
Definition
fallbackaction.php:6
Bitrix\Main\Engine\FallbackAction\buildBinder
buildBinder()
Definition
fallbackaction.php:19
Bitrix\Main\Engine\FallbackAction\ACTION_METHOD
const ACTION_METHOD
Definition
fallbackaction.php:8
Bitrix\Main\Engine\FallbackAction\__construct
__construct($name, Controller $controller, $config=[])
Definition
fallbackaction.php:13
Bitrix\Main\Engine\FallbackAction\ACTION_NAME
const ACTION_NAME
Definition
fallbackaction.php:7
Bitrix\Main\Engine
Definition
action.php:3
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
main
lib
engine
fallbackaction.php
Создано системой
1.10.0