芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/yiisoft/yii2/base/InlineAction.php
* @since 2.0 */ class InlineAction extends Action { /** * @var string the controller method that this inline action is associated with */ public $actionMethod; /** * @param string $id the ID of this action * @param Controller $controller the controller that owns this action * @param string $actionMethod the controller method that this inline action is associated with * @param array $config name-value pairs that will be used to initialize the object properties */ public function __construct($id, $controller, $actionMethod, $config = []) { $this->actionMethod = $actionMethod; parent::__construct($id, $controller, $config); } /** * Runs this action with the specified parameters. * This method is mainly invoked by the controller. * @param array $params action parameters * @return mixed the result of the action */ public function runWithParams($params) { $args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }