Lines Matching refs:action
38 private static function create($class, $action) { argument
40 return ($handler->action() != $action) ? NULL : $handler;
56 private function unique($classes, $action) { argument
59 $new = $this->create($class, $action);
64 if ($new && $new->action() == $action) {
79 * @param string $action the action to be peformed;
82 public function act(&$action) { argument
84 if (is_array($action))
85 list($action) = array_keys($action);
92 $components = explode('.', $action);
95 $action = implode('.', $components);
97 $this->load($path, $action);
99 $this->handler = $this->unique($this->handlers, $action);
100 $this->renderer = $this->unique($this->renderers, $action);
103 if (!actionOK($action)) {
104 msg('action disabled: ' . htmlspecialchars($action), -1);
105 $action = 'show';
106 return self::act($action);
115 $action = 'denied';
116 return $this->act($action);
122 if ($new_action && $new_action !== $action) {
123 $action = $new_action;
124 return $this->act($action);
133 * @param type $action the action to display
136 public function render($action) { argument
138 if (is_array($action)) {
140 foreach ($action as $act => $x)