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