Esempio n. 1
0
 /**
  * Main function
  *
  * @param string $_action action to be called
  * @throws Exception if the action is not found
  */
 private final function _main($_action)
 {
     if (!\method_exists($this, $_action)) {
         Debug::warning('Action %1$s nonexistent', $_action);
         throw new Exception(sprintf('%1$s->%2$s Not found', get_class($this), $_action));
     }
     Debug::info('Loading "%1$s->%2$s"', get_class($this), $_action);
     $this->_prepend();
     $this->{$_action}();
     $this->_append();
 }