HumHub Documentation (unofficial)

ChainLoader
in package
implements LoaderInterface

FinalYes

Loads templates from other loaders.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

LoaderInterface
Interface all loaders must implement.

Properties

$hasSourceCache  : mixed
$loaders  : mixed

Methods

__construct()  : mixed
addLoader()  : void
exists()  : bool
getCacheKey()  : string
Gets the cache key to use for the cache for a given template name.
getLoaders()  : array<string|int, LoaderInterface>
getSourceContext()  : Source
Returns the source context for a given template logical name.
isFresh()  : bool

Properties

Methods

exists()

public exists(string $name) : bool
Parameters
$name : string
Return values
bool

getCacheKey()

Gets the cache key to use for the cache for a given template name.

public getCacheKey(string $name) : string
Parameters
$name : string
Return values
string

getSourceContext()

Returns the source context for a given template logical name.

public getSourceContext(string $name) : Source
Parameters
$name : string
Return values
Source

isFresh()

public isFresh(string $name, int $time) : bool
Parameters
$name : string
$time : int

Timestamp of the last modification time of the cached template

Return values
bool

        
On this page

Search results