Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
componentcontroller.php
1<?php
2
4
5
9
10Loc::loadMessages(__FILE__);
11
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}
static loadMessages($file)
Definition loc.php:64