1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
componentcontroller.php:13
Bitrix\Main\Engine\Component\ComponentController\create
create($actionName)
Определения
componentcontroller.php:36
Bitrix\Main\Engine\Component\ComponentController\__construct
__construct(Controllerable $component)
Определения
componentcontroller.php:24
Bitrix\Main\Engine\Component\ComponentController\configureActions
configureActions()
Определения
componentcontroller.php:31
Bitrix\Main\Engine\Component\InlineAction
Определения
inlineaction.php:13
Bitrix\Main\Engine\Controller\getActionConfig
getActionConfig($actionName)
Определения
controller.php:920
Bitrix\Main\Engine\Controller\generateActionMethodName
generateActionMethodName($action)
Определения
controller.php:632
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\Engine\Contract\Controllerable
Определения
controllerable.php:6
Bitrix\Main\Controller
Определения
agreement.php:2
Bitrix\Main\Engine\Component
Определения
componentcontroller.php:3
$config
$config
Определения
quickway.php:69
$method
$method
Определения
index.php:27
bitrix
modules
main
lib
engine
component
componentcontroller.php
Создано системой
1.14.0