Router
in package
Class Router
This abstract class represents a template for web content generation.
Table of Contents
Properties
- $_configArray : array<string|int, mixed>
Methods
- __construct() : mixed
- Constructor. Initializes the Router instance.
- UpdateRequest() : mixed
- Update the current request URI based on defined routes.
- Uri() : string
- Get the modified URI based on defined routes.
Properties
$_configArray
private
array<string|int, mixed>
$_configArray
= []
Holds the configuration array for routes.
Methods
__construct()
Constructor. Initializes the Router instance.
public
__construct() : mixed
UpdateRequest()
Update the current request URI based on defined routes.
public
UpdateRequest() : mixed
Uri()
Get the modified URI based on defined routes.
public
Uri(string $command) : string
Parameters
- $command : string
-
The original URI.
Return values
string —The modified URI.