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

Parameters

string|null $baseDir

at line 32
string getContent(string $fileName)

Returns template source code.

Parameters

string $fileName

Return Value

string

at line 51
bool isExpired(string $file, int $time)

Checks whether template is expired.

Parameters

string $file
int $time

Return Value

bool

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

Returns referred template name.

Parameters

string $file
string $referringFile

Return Value

string

at line 73
string getUniqueId(string $file)

Returns unique identifier for caching.

Parameters

string $file

Return Value

string

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

No description

Parameters

string $path

Return Value

string