-
Notifications
You must be signed in to change notification settings - Fork 0
Class Router
Namespace:
Afoslt\Core
Parent:
-
Modifiers:
final
Afoslt router. Router can read client's request and search matching route in application's routes array.
Modifiers:
private
Associative array of avaible routes for this instance of Router.
Modifiers:
private
Name of controller that this router requesting.
Modifiers:
private
Name of controller's action that this router requesting.
Modifiers:
private
Name of controller's action that this router requesting.
Modifiers:
public
final
Getter for $routes
.
Modifiers:
private
Add for $routes
.
Adds new route to routes array, where $route is key and $routeParams is associative array with default keys controller
& action
.
Modifiers:
public
final
Getter for $controllerName
.
Modifiers:
public
final
Getter for $actionName
.
Modifiers:
private
Setter for $actionName
.
Modifiers:
public
final
Getter for $actionName
.
Modifiers:
public
Afoslt router. Router can read client's request and search matching route in application's routes array.
Gets associative arrays of routes as a parameter.
Modifiers:
private
Formatting all routes from parameters so that Router would work with them.
Gets associative arrays of routes as a parameter.
Modifiers:
public
final
Read client's request to server.
Gets request URI as a parameter.
Returns true
if requests matches with any of router's routes.