pclib
3.0.0
Lightweight PHP framework
|
It encapsulates call of the controller's action: $controller->method($params). More...
Public Member Functions | |
toString () | |
Convert route to string. More... | |
fromString ($s) | |
Create new Action object from the string. More... | |
fromArray ($get) | |
Create new Action object from $_GET array. More... | |
Data Fields | |
$path | |
Complete path such as 'products/edit', 'admin/products/edit'. | |
$module | |
Name of the module which owns controller. | |
$controller | |
Name of the controller. | |
$method | |
Controller's method name. | |
$params | |
Array of action parameters. | |
It encapsulates call of the controller's action: $controller->method($params).
It Can be mapped to URL.
fromArray | ( | $get | ) |
Create new Action object from $_GET array.
array | $get |
fromString | ( | $s | ) |
Create new Action object from the string.
string | $s | string-route - example: 'orders/edit/id:1' |
toString | ( | ) |
Convert route to string.