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

Parameters

string|null $baseDir

at line 34
string getContent(string $fileName)

Returns template source code.

Parameters

string $fileName

Return Value

string

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

Checks whether template is expired.

Parameters

string $file
int $time

Return Value

bool

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

Returns referred template name.

Parameters

string $file
string $referringFile

Return Value

string

at line 76
string getUniqueId(string $file)

Returns unique identifier for caching.

Parameters

string $file

Return Value

string

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

No description

Parameters

string $path

Return Value

string

Traits

Better OOP experience.