Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
componentcontroller.php
1
<?php
2
3
namespace
Bitrix\Main\Engine\Component
;
4
5
6
use
Bitrix\Main\Engine\Contract\Controllerable
;
7
use
Bitrix\Main\Engine\Controller
;
8
use
Bitrix\Main\Localization\Loc
;
9
10
Loc::loadMessages
(__FILE__);
11
12
final
class
ComponentController
extends
Controller
13
{
17
private
$component;
18
24
public
function
__construct
(
Controllerable
$component)
25
{
26
$this->component = $component;
27
28
parent::__construct();
29
}
30
31
public
function
configureActions
()
32
{
33
return
$this->component->configureActions();
34
}
35
36
protected
function
create
($actionName)
37
{
38
$config = $this->
getActionConfig
($actionName);
39
$methodName = $this->
generateActionMethodName
($actionName);
40
41
if
(method_exists($this->component, $methodName))
42
{
43
$method = new \ReflectionMethod($this->component, $methodName);
44
if
($method->isPublic() && mb_strtolower($method->getName()) === mb_strtolower($methodName))
45
{
46
return
new
InlineAction
($actionName, $this->component, $this, $config);
47
}
48
}
49
50
return
parent::create($actionName);
51
}
52
53
}
Bitrix\Main\Engine\Component\ComponentController
Definition
componentcontroller.php:13
Bitrix\Main\Engine\Component\ComponentController\create
create($actionName)
Definition
componentcontroller.php:36
Bitrix\Main\Engine\Component\ComponentController\__construct
__construct(Controllerable $component)
Definition
componentcontroller.php:24
Bitrix\Main\Engine\Component\ComponentController\configureActions
configureActions()
Definition
componentcontroller.php:31
Bitrix\Main\Engine\Component\InlineAction
Definition
inlineaction.php:13
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Engine\Controller\getActionConfig
getActionConfig($actionName)
Definition
controller.php:921
Bitrix\Main\Engine\Controller\generateActionMethodName
generateActionMethodName($action)
Definition
controller.php:638
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Engine\Contract\Controllerable
Definition
controllerable.php:6
Bitrix\Main\Engine\Component
Definition
componentcontroller.php:3
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
main
lib
engine
component
componentcontroller.php
Создано системой
1.10.0