* @since 2.0 */ class InlineAction extends Action { /** * Runs this action with the specified parameters. * This method is mainly invoked by the controller. * @param array $params action parameters * @return integer the exit status (0 means normal, non-zero means abnormal). */ public function runWithParams($params) { try { $method = 'action' . $this->id; $params = ReflectionHelper::extractMethodParams($this->controller, $method, $params); return (int)call_user_func_array(array($this->controller, $method), $params); } catch (Exception $e) { $this->controller->invalidActionParams($this, $e); return 1; } } }