NextDom\Helpers\Router
Turnout of the display
Synopsis
class Router
{
- // members
- private $viewType;
- // methods
- public void __construct()
- public static void showError404AndDie()
- public static void showError401AndDie()
- public static void showError403AndDie()
- public static void showError500AndDie()
- public bool show()
- public void desktopView()
- private bool isModalRequest()
- private bool isPluginConfRequest()
- private bool isAjaxQuery()
- private void staticView()
Members
private
- $viewType — string
Methods
private
- isAjaxQuery() — Test if page is requested by Ajax query
- isModalRequest() — Test if modal window is requested
- isPluginConfRequest() — Test if plugin configuration page is requested
- staticView() — Show static content
public
- __construct() — Builder initializing the type of view
- desktopView() — Display for a computer
- show() — Viewing the requested content
- showError401AndDie() — Show 401 error page (Unauthorized)
- showError403AndDie() — Show 403 security page
- showError404AndDie() — Show 404 error page (Not found)
- showError500AndDie() — Show 500 http error page