class FileLoader implements ILoader

Template loader.

Methods

__construct($baseDir = null)

No description

string
getContent($fileName)

Returns template source code.

bool
isExpired($file, $time)

No description

string
getReferredName($file, $referringFile)

Returns referred template name.

string
getUniqueId($file)

Returns unique identifier for caching.

Details

at line 24
__construct($baseDir = null)

No description

Parameters

$baseDir

at line 34
string getContent($fileName)

Returns template source code.

Parameters

$fileName

Return Value

string

at line 55
bool isExpired($file, $time)

No description

Parameters

$file
$time

Return Value

bool

at line 65
string getReferredName($file, $referringFile)

Returns referred template name.

Parameters

$file
$referringFile

Return Value

string

at line 78
string getUniqueId($file)

Returns unique identifier for caching.

Parameters

$file

Return Value

string

Traits

Better OOP experience.