Beispiel #1
0
 /**
  * Método que tenta instanciar uma Action, caso exista.
  */
 public static function fetchAction()
 {
     $action = null;
     $actionid = !empty($_GET[Proxy::encrypt(Proxy::$_ACTION)]) ? $_GET[Proxy::encrypt(Proxy::$_ACTION)] : null;
     if ($actionid) {
         //Pega o nome da Action
         $nm_action = Proxy::$actionlist[$actionid];
         //GRAVA O LOG
         Proxy::log($nm_action);
         //Instancia a Action
         $action = new $nm_action();
     }
     return $action;
 }