$ident
$ident : string
Route identifier/name
Base "Route" configuration.
setIdent(string $ident) : \Charcoal\App\Route\RouteConfig
Set route identifier
string | $ident | Route identifier. |
If the identifier is not a string.
Chainable
setRoute(string $pattern) : \Charcoal\App\Route\RouteConfig
Set route pattern.
string | $pattern | Route pattern. |
If the pattern argument is not a string.
Chainable
setGroups(array<mixed,string>|array<mixed,\Charcoal\App\Route\RouteGroup> $groups) : \Charcoal\App\Route\RouteConfig
Set parent route groups
array<mixed,string>|array<mixed,\Charcoal\App\Route\RouteGroup> | $groups | The parent route groups. |
Chainable
addGroup(string|\Charcoal\App\Route\RouteGroup $group) : \Charcoal\App\Route\RouteConfig
Add parent route group
string|\Charcoal\App\Route\RouteGroup | $group | The parent route group. |
If the group is invalid.
Chainable
setController(string $controller) : \Charcoal\App\Route\RouteConfig
Set route view controller classname
string | $controller | Route controller name. |
If the route view controller is not a string.
Chainable
setMethods(array<mixed,string> $methods) : \Charcoal\App\Route\RouteConfig
Set route methods
array<mixed,string> | $methods | The route's supported HTTP methods. |
Chainable
addMethod(string $method) : \Charcoal\App\Route\RouteConfig
Add route HTTP method.
string | $method | The route's supported HTTP method. |
If the HTTP method is invalid.
Chainable
setTemplate(string|null $template) : \Charcoal\App\Route\TemplateRouteConfig
string|null | $template | The template identifier. |
If the tempalte parameter is not null or not a string.
Chainable
setEngine(string|null $engine) : \Charcoal\App\Route\TemplateRouteConfig
string|null | $engine | The engine identifier (mustache, php, or mustache-php). |
If the engine is not null or not a string.
Chainable
setTemplateData(array $templateData) : \Charcoal\App\Route\TemplateRouteConfig
Set the template data for the view.
array | $templateData | The route template data. |
Chainable
setRedirect(string|array<mixed,string> $url) : \Charcoal\App\Route\TemplateRouteConfig
string|array<mixed,string> | $url | Points to a route. |
Chainable
setRedirectMode(mixed $redirectMode) : \Charcoal\App\Route\TemplateRouteConfig
Set the redirect HTTP status mode. (Must be 3xx)
mixed | $redirectMode | The HTTP status code. |
If the redirect mode is not 3xx.
Chainable
setCache(boolean $cache) : \Charcoal\App\Route\TemplateRouteConfig
boolean | $cache | The cache enabled flag. |
Chainable
setCacheTtl(integer $ttl) : \Charcoal\App\Route\TemplateRouteConfig
integer | $ttl | The cache Time-To-Live, in seconds. |
Chainable