File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/lib/engine/component/componentcontroller.php
Back
<?php namespace Bitrix\Main\Engine\Component; use Bitrix\Main\Engine\Contract\Controllerable; use Bitrix\Main\Engine\Controller; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); final class ComponentController extends Controller { /** * @var \CBitrixComponent */ private $component; /** * ComponentController constructor. * * @param Controllerable $component */ public function __construct(Controllerable $component) { $this->component = $component; parent::__construct(); } public function configureActions() { return $this->component->configureActions(); } protected function create($actionName) { $config = $this->getActionConfig($actionName); $methodName = $this->generateActionMethodName($actionName); if (method_exists($this->component, $methodName)) { $method = new \ReflectionMethod($this->component, $methodName); if ($method->isPublic() && mb_strtolower($method->getName()) === mb_strtolower($methodName)) { return new InlineAction($actionName, $this->component, $this, $config); } } return parent::create($actionName); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings