class FileLoader implements Loader

Template loader.

Properties

protected string|null $baseDir

Methods

__construct($baseDir = null)

No description

getContent($fileName)

Returns template source code.

isExpired($file, $time)

Checks whether template is expired.

getReferredName($file, $referringFile)

Returns referred template name.

getUniqueId($file)

Returns unique identifier for caching.

static string
normalizePath(string $path)

No description

Details

at line 26
__construct($baseDir = null)

No description

Parameters

$baseDir

at line 35
getContent($fileName)

Returns template source code.

Parameters

$fileName

at line 53
isExpired($file, $time)

Checks whether template is expired.

Parameters

$file
$time

at line 63
getReferredName($file, $referringFile)

Returns referred template name.

Parameters

$file
$referringFile

at line 75
getUniqueId($file)

Returns unique identifier for caching.

Parameters

$file

at line 81
static protected string normalizePath(string $path)

No description

Parameters

string $path

Return Value

string

Traits

Better OOP experience.