* @since 2.0 */ class InlineAction extends Action { /** * Runs the action with the supplied parameters. * This method is invoked by the controller. * @param array $params the input parameters in terms of name-value pairs. * @return boolean whether the input parameters are valid */ public function runWithParams($params) { $method = new \ReflectionMethod($this->controller, 'action' . $this->id); $params = $this->normalizeParamsByMethod($method, $params); if ($params !== false) { call_user_func_array(array($this->controller, 'action' . $this->id), $params); return true; } else { return false; } } }