Beispiel #1
0
 /**
  * Handles an action.
  *
  * If an Action object was not registered here, controller's handle()
  * method will be called.
  *
  * @access public
  * @param  string Name of the action
  * @throws PEAR_Error
  */
 function handle($actionName)
 {
     if (isset($this->_actions[$actionName])) {
         return $this->_actions[$actionName]->perform($this, $actionName);
     } else {
         return $this->controller->handle($this, $actionName);
     }
 }