Class Smarty
Class FileSystem Adapter for caching data.
-
Core\Modules\Render\Adapters\Smarty
implements
Core\Modules\Render\Interfaces\Adapter
Methods summary
public
|
#
__construct( array $config, array $options = array() )
Initialize the template engine.
Initialize the template engine.
Parameters
- $config
- Template configuration.
- $options
- Additional options.
|
public
|
#
assignVariable( string $name, mixed $value )
Assigns a template variable.
Assigns a template variable.
Parameters
- $name
- Name of the variable.
- $value
- Value of the variable.
Implementation of
|
public
mixed
|
#
getVariable( string $name )
Retrieves an assigned template variable.
Retrieves an assigned template variable.
Parameters
- $name
- Name of the variable.
Returns
mixed
Implementation of
|
public
|
#
removeVariable( string $name )
Removes an assigned template variable.
Removes an assigned template variable.
Parameters
- $name
- Name of the variable to remove.
Implementation of
|
public
boolean
|
#
applyFilter( string $type, string $filterName )
Applies a render filter.
Parameters
- $type
- Filter type.
- $filterName
- Filter name.
Returns
boolean
Implementation of
|
public
|
#
removeFilter( string $type, string $filterName )
Removes a render filter.
Parameters
- $type
- Filter type.
- $filterName
- Filter name.
Implementation of
|
public
string
|
#
parse( string $template )
Parse and return render output.
Parse and return render output.
Parameters
- $template
- Path to template file to parse.
Returns
string
Implementation of
|
public
string
|
#
getTemplatesFileExtension( )
Retrieves rendered templates file extension.
Retrieves rendered templates file extension.
Returns
string
Implementation of
|
public
string
|
#
getRenderedContentType( )
Retrieves rendered content type(MIME type).
Retrieves rendered content type(MIME type).
Returns
string
Implementation of
|
Properties summary
private
Smarty
|
$tpl
Smarty Template Engine instance.
Smarty Template Engine instance.
|
|