class ParserFallback implements ParserInterface

Class ParserFallback

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 23
render($realTemplateName, array $parameters = array(), $compressOutput = true)

Parameters

$realTemplateName
array $parameters
$compressOutput

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

Parameters

$templateText
array $parameters
$compressOutput

at line 33
getStatus()

at line 38
setStatus($status)

Parameters

$status

at line 48
setTemplateDefinition( TemplateDefinition $templateDefinition)

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

Parameters

TemplateDefinition $templateDefinition

at line 61
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 76
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 88
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 99
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 107
TemplateHelperInterface getTemplateHelper()

Return Value

TemplateHelperInterface the parser template helper instance