Class Router
Handles routing to the correct controller and method
Namespace:Alo\Controller
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/controller/router.php
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/controller/router.php
Methods summary
public | |
protected | |
protected | |
public | |
protected | |
protected | |
protected | |
protected | |
public boolean | |
public boolean | |
public string | |
public string | |
public string | |
public integer | |
public string | |
public string | |
public string | |
public string | |
public string | |
public string | |
public string | |
public string |
Magic methods summary
Constants summary
string | CONTROLLER_NAMESPACE | '\Controller\\' | # Pretty self-explanatory, isn't it? |
string | PREG_DELIMITER | '~' | # Delimiter used in the regex checking |
Properties summary
public static | $this | # Static reference to the last instance of the class |
protected static array | $routeDefaults | # Default params for a route |
protected string | $serverName | # The server name |
protected string | $serverAddr | # The server IP |
protected integer | $port | # The port in use |
protected string | $remoteAddr | # The remote address |
protected string | $requestScheme | # The request scheme |
protected string | $path | # The raw path info |
protected string | $requestMethod | # Request method in use |
protected string | $dir | # Directory name |
protected string | $controller | # Controller name |
protected string | $method | # Method name |
protected array | $methodArgs | # Arguments to pass on to the method |
protected string | $errController | # The error controller name |
protected string | $defaultController | # The default controller |
protected array | $routes | # The routes array |
protected boolean | $isCliRequest | # Whether we're dealing with a CLI request... |
protected boolean | $isAjaxRequest | # Whether we're dealing with an AJAX request |