interface ParserInterface

Constants

TEMPLATE_ASSETS_KEY

Methods

render($realTemplateName, array $parameters = array(), $compressOutput = true)

No description

renderString($templateText, array $parameters = array(), $compressOutput = true)

No description

getStatus()

No description

setStatus($status)

No description

setTemplateDefinition( TemplateDefinition $templateDefinition)

Setup the parser with a template definition, which provides a template description.

getTemplateDefinition( bool $webAssetTemplate = false)

Get template definition

addTemplateDirectory( int $templateType, string $templateName, string $templateDirectory, string $key, bool $unshift = false)

Add a template directory to the current template list

array:
getTemplateDirectories( int $templateType)

Return the registeted template directories for a givent template type

assign( string $variable, mixed $value)

Create a variable that will be available in the templates

Details

at line 27
render($realTemplateName, array $parameters = array(), $compressOutput = true)

Parameters

$realTemplateName
array $parameters
$compressOutput

at line 29
renderString($templateText, array $parameters = array(), $compressOutput = true)

Parameters

$templateText
array $parameters
$compressOutput

at line 31
getStatus()

at line 33
setStatus($status)

Parameters

$status

at line 40
setTemplateDefinition( TemplateDefinition $templateDefinition)

Setup the parser with a template definition, which provides a template description.

Parameters

TemplateDefinition $templateDefinition

at line 50
TemplateDefinition getTemplateDefinition( bool $webAssetTemplate = false)

Get template definition

Parameters

bool $webAssetTemplate Allow to load asset from another template If the name of the template if provided

Return Value

TemplateDefinition

at line 62
addTemplateDirectory( int $templateType, string $templateName, string $templateDirectory, string $key, bool $unshift = false)

Add a template directory to the current template list

Parameters

int $templateType the template type (
string $templateName the template name
string $templateDirectory path to the template dirtectory
string $key ???
bool $unshift ??? Etienne ?

at line 71
array: getTemplateDirectories( int $templateType)

Return the registeted template directories for a givent template type

Parameters

int $templateType

Return Value

array: an array of defined templates directories for the given template type

Exceptions

InvalidArgumentException if the templateType is not defined

at line 79
assign( string $variable, mixed $value)

Create a variable that will be available in the templates

Parameters

string $variable the variable name
mixed $value the value of the variable

at line 84
TemplateHelperInterface getTemplateHelper()

Return Value

TemplateHelperInterface the parser template helper instance