\rex_template

Template Objekt.

Zuständig für die Verarbeitung eines Templates.

Summary

Methods
Properties
Constants
__construct()
getDefaultId()
forKey()
getId()
getKey()
getFile()
getFilePath()
getTemplatesDir()
getTemplate()
generate()
deleteCache()
getTemplatesForCategory()
hasModule()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(mixed  $templateId) : mixed

Parameters

mixed $templateId

Returns

mixed —

getDefaultId()

getDefaultId() : mixed

Returns

mixed —

forKey()

forKey(string  $templateKey) : ?self

Parameters

string $templateKey

Returns

?self —

getId()

getId() : int

Returns

int —

getKey()

getKey() : ?string

Returns

?string —

getFile()

getFile() : false|string

Returns

false|string —

getFilePath()

getFilePath(mixed  $templateId) : false|string

Parameters

mixed $templateId

Returns

false|string —

getTemplatesDir()

getTemplatesDir() : string

Returns

string —

getTemplate()

getTemplate() : mixed

Returns

mixed —

generate()

generate() : bool

Returns

bool —

deleteCache()

deleteCache() : bool

Returns

bool —

getTemplatesForCategory()

getTemplatesForCategory(int  $categoryId, bool  $ignoreInactive = true) : array

Returns an array containing all templates which are available for the given category_id.

if the category_id is non-positive all templates in the system are returned. if the category_id is invalid an empty array is returned.

Parameters

int $categoryId
bool $ignoreInactive

Returns

array —

hasModule()

hasModule(array  $templateAttributes, mixed  $ctype, mixed  $moduleId) : bool

Parameters

array $templateAttributes
mixed $ctype
mixed $moduleId

Returns

bool —