Loader
class Loader implements TemplateLoader
Loader class
Properties
protected string | $extension | ||
protected array | $fallbackCache | ||
protected array | $cache | ||
protected Model | $source |
Methods
getSource()
No description
string
getMarkup(string $name)
Gets the markup section of a template, given its name.
string
getContents(string $name)
Gets the source code of a template, given its name.
getFilename($name)
No description
string
findTemplate(string $name)
Gets the path of a view file
string
getCacheKey(string $name)
Gets the cache key to use for the cache for a given template name.
bool
isFresh(string $name, int $time)
Returns true if the template is still fresh.
exists($name)
No description
getFilePath()
No description
Details
at line 41
setSource(TemplateSource $source)
Sets a object to load the template from.
at line 46
getSource()
No description
at line 60
string
getMarkup(string $name)
Gets the markup section of a template, given its name.
at line 65
string
getContents(string $name)
Gets the source code of a template, given its name.
at line 70
getFilename($name)
No description
at line 82
protected string
findTemplate(string $name)
Gets the path of a view file
at line 104
string
getCacheKey(string $name)
Gets the cache key to use for the cache for a given template name.
at line 109
bool
isFresh(string $name, int $time)
Returns true if the template is still fresh.
at line 114
exists($name)
No description
at line 126
getFilePath()
No description