StringLoader
class StringLoader implements Loader
Template loader.
Methods
__construct(array|null $templates = null)
No description
string
getContent(string $name)
Returns template source code.
bool
isExpired(string $name, int $time)
Checks whether template is expired.
string
getReferredName(string $name, string $referringName)
Returns referred template name.
string
getUniqueId(string $name)
Returns unique identifier for caching.
Details
at line 25
__construct(array|null $templates = null)
No description
at line 34
string
getContent(string $name)
Returns template source code.
at line 46
bool
isExpired(string $name, int $time)
Checks whether template is expired.
at line 55
string
getReferredName(string $name, string $referringName)
Returns referred template name.
at line 68
string
getUniqueId(string $name)
Returns unique identifier for caching.