File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/lib/engine/component/inlineaction.php
Back
<?php namespace Bitrix\Main\Engine\Component; use Bitrix\Main\Engine\Action; use Bitrix\Main\Engine\AutoWire; use Bitrix\Main\Engine\Contract\Controllerable; use Bitrix\Main\Engine\Controller; use Bitrix\Main\Errorable; final class InlineAction extends Action { /** * @var string */ protected $methodName; /** * @var Controllerable */ private $controllerable; /** * InlineAction constructor. * * @param string $name * @param Controllerable $controllerable * @param Controller $controller * @param array $config */ public function __construct($name, Controllerable $controllerable, Controller $controller, $config = array()) { $this->methodName = $controller->generateActionMethodName($name); $this->controllerable = $controllerable; parent::__construct($name, $controller, $config); } protected function buildBinder() { if ($this->binder === null) { $controller = $this->getController(); $this->binder = AutoWire\ControllerBinder::buildForMethod($this->controllerable, $this->methodName) ->setController($controller) ->setSourcesParametersToMap($controller->getSourceParametersList()) ->setAutoWiredParameters( array_filter(array_merge( [$controller->getPrimaryAutoWiredParameter()], $controller->getAutoWiredParameters() )) ) ; } return $this; } public function runWithSourceParametersList() { $result = parent::runWithSourceParametersList(); if ($this->controllerable instanceof Errorable) { $this->errorCollection->add( $this->controllerable->getErrors() ); } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings