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 23
__construct(string|null $baseDir = null)
No description
at line 32
string
getContent(string $fileName)
Returns template source code.
at line 51
bool
isExpired(string $file, int $time)
Checks whether template is expired.
at line 60
string
getReferredName(string $file, string $referringFile)
Returns referred template name.
at line 73
string
getUniqueId(string $file)
Returns unique identifier for caching.
at line 79
static protected string
normalizePath(string $path)
No description