TemplateSource
interface TemplateSource
Methods
static mixed
load(string $hostObj, string $fileName)
Loads the template.
static mixed
loadCached(string $hostObj, string $fileName)
Loads and caches the template.
string
getFilePath(string $fileName = null)
Returns the local file path to the template.
string
getFileName()
Returns the file name.
string
getBaseFileName()
Returns the file name without the extension.
string
getContent()
Returns the file content.
string
getMarkup()
Gets the markup section of a template
string
getCode()
Gets the code section of a template
string
getTemplateCacheKey()
Returns the key used by the Template cache.
Details
at line 15
static mixed
load(string $hostObj, string $fileName)
Loads the template.
at line 25
static mixed
loadCached(string $hostObj, string $fileName)
Loads and caches the template.
at line 34
string
getFilePath(string $fileName = null)
Returns the local file path to the template.
at line 40
string
getFileName()
Returns the file name.
at line 46
string
getBaseFileName()
Returns the file name without the extension.
at line 52
string
getContent()
Returns the file content.
at line 58
string
getMarkup()
Gets the markup section of a template
at line 64
string
getCode()
Gets the code section of a template
at line 70
string
getTemplateCacheKey()
Returns the key used by the Template cache.