Class Router
Handles routing to the correct controller and method
Namespace: Alo\Controller
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/controller/router.php
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/controller/router.php
Methods summary
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
|
public
string
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
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
protected
string
|
$server_name |
#
The server name |
protected
string
|
$server_addr |
#
The server IP |
protected
integer
|
$port |
#
The port in use |
protected
string
|
$remote_addr |
#
The remote address |
protected
string
|
$request_scheme |
#
The request scheme |
protected
string
|
$path |
#
The raw path info |
protected
string
|
$request_method |
#
Request method in use |
protected
string
|
$dir |
#
Directory name |
protected
string
|
$controller |
#
Controller name |
protected
string
|
$method |
#
Method name |
protected
array
|
$method_args |
#
Arguments to pass on to the method |
protected
string
|
$err_controller |
#
The error controller name |
protected
string
|
$default_controller |
#
The default controller |
protected
array
|
$routes |
#
The routes array |
protected
boolean
|
$is_cli_request |
#
Whether we're dealing with a CLI request... |
protected
boolean
|
$is_ajax_request |
#
Whether we're dealing with an AJAX request |
protected static
array
|
$route_defaults |
#
Default params for a route |