/** * @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); }
/** * @return NotifyManager */ public function getNotifyManager() { return AppRegistry::AppRegistry(AppRegistry::APPLICATION_NOTIFY); }
/** * @return RouteManager */ public function getRouteManager() { return AppRegistry::AppRegistry(AppRegistry::APPLICATION_ROUTES); }
/** * @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; }
/** * @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); }