class TheliaTemplateHelper implements TemplateHelperInterface

Methods

bool
isActive( TemplateDefinition $tplDefinition)

Check if a template definition is the current active template

getStandardTemplateDefinitions()

Returns an array which contains all standard template definitions

getList( int $templateType, string $base = THELIA_TEMPLATE_DIR)

Return a list of existing templates for a given template type

Details

at line 27
TemplateDefinition getActiveMailTemplate()

Return Value

TemplateDefinition

at line 41
bool isActive( TemplateDefinition $tplDefinition)

Check if a template definition is the current active template

Parameters

TemplateDefinition $tplDefinition

Return Value

bool true is the given template is the active template

at line 65
TemplateDefinition getActivePdfTemplate()

Return Value

TemplateDefinition

at line 76
TemplateDefinition getActiveAdminTemplate()

Return Value

TemplateDefinition

at line 87
TemplateDefinition getActiveFrontTemplate()

Return Value

TemplateDefinition

at line 98
getStandardTemplateDefinitions()

Returns an array which contains all standard template definitions

at line 115
TemplateDefinition[] getList( int $templateType, string $base = THELIA_TEMPLATE_DIR)

Return a list of existing templates for a given template type

Parameters

int $templateType the template type
string $base the template base (module or core, default to core).

Return Value

TemplateDefinition[] of \Thelia\Core\Template\TemplateDefinition