Exemplo n.º 1
0
 /**
  * @param $routeName
  * @throws ControllerException
  */
 protected function redirectByRouteName($routeName)
 {
     if (!($route = AppRegistry::AppRegistry(AppRegistry::APPLICATION_ROUTES)->getRouteByName($routeName))) {
         throw new ControllerException(ControllerException::ERROR_ROUTE, $this, $routeName);
     }
     $this->redirectByRoute($route);
 }
Exemplo n.º 2
0
 /**
  * @return NotifyManager
  */
 public function getNotifyManager()
 {
     return AppRegistry::AppRegistry(AppRegistry::APPLICATION_NOTIFY);
 }
Exemplo n.º 3
0
 /**
  * @return RouteManager
  */
 public function getRouteManager()
 {
     return AppRegistry::AppRegistry(AppRegistry::APPLICATION_ROUTES);
 }
Exemplo n.º 4
0
 /**
  * @param SqlInterface $sql
  * @return EntityManagerMysqli
  */
 protected function setSql(SqlInterface $sql)
 {
     $this->sql = $sql;
     AppRegistry::AppRegistry(AppRegistry::APPLICATION_DATABASE_SQL . __DOT__ . $sql->getId(), $sql->toString());
     return $this;
 }
Exemplo n.º 5
0
 /**
  * @param string $title
  * @param string $message
  * @param string $type
  */
 protected function addNotify($title, $message = null, $type = Notify::TYPE_MESSAGE)
 {
     $Notify = new Notify($title, $message, $type);
     AppRegistry::AppRegistry(AppRegistry::APPLICATION_NOTIFY)->add($Notify);
 }