FileLoader
class FileLoader implements Loader
Template loader.
Properties
protected string|null | $baseDir |
Methods
__construct(string $baseDir = null)
No description
string
getContent($fileName)
Returns template source code.
bool
isExpired($file, int $time)
Checks whether template is expired.
string
getReferredName($file, $referringFile)
Returns referred template name.
string
getUniqueId($file)
Returns unique identifier for caching.
static string
normalizePath(string $path)
No description
Details
at line 26
__construct(string $baseDir = null)
No description
at line 35
string
getContent($fileName)
Returns template source code.
at line 53
bool
isExpired($file, int $time)
Checks whether template is expired.
at line 63
string
getReferredName($file, $referringFile)
Returns referred template name.
at line 75
string
getUniqueId($file)
Returns unique identifier for caching.
at line 81
static protected string
normalizePath(string $path)
No description
Traits
Better OOP experience.