Methods summary
public
Charcoal\App\Handler\HandlerConfig
|
#
setTemplate( string|null $template )
Parameters
- $template
- The template identifier.
Returns
Throws
InvalidArgumentException If the tempalte parameter is not null or not a string.
|
public
string
|
|
public
RouteConfig
|
#
setController( string $controller )
Set handler view controller classname
Set handler view controller classname
Parameters
- $controller
- Handler controller name.
Returns
RouteConfig Chainable
Throws
InvalidArgumentException If the handler view controller is not a string.
|
public
string
|
#
controller( )
Get the view controller classname
Get the view controller classname
Returns
string
|
public
string
|
|
public
Charcoal\App\Handler\HandlerConfig
|
#
setEngine( string|null $engine )
Parameters
- $engine
- The engine identifier (mustache, php, or mustache-php).
Returns
Throws
InvalidArgumentException If the engine is not null or not a string.
|
public
string
|
|
public
string
|
|
public
Charcoal\App\Handler\HandlerConfig
|
#
setTemplateData( array $templateData )
Set the template data for the view.
Set the template data for the view.
Parameters
- $templateData
- The route template data.
Returns
|
public
array
|
#
templateData( )
Get the template data for the view.
Get the template data for the view.
Returns
array
|
public
Charcoal\App\Handler\HandlerConfig
|
#
setCache( boolean $cache )
Parameters
- $cache
- The cache enabled flag.
Returns
|
public
boolean
|
|
public
Charcoal\App\Handler\HandlerConfig
|
#
setCacheTtl( integer $ttl )
Parameters
- $ttl
- The cache Time-To-Live, in seconds.
Returns
|
public
integer
|
|