HumHub Documentation (unofficial)

LoaderInterface

Interface all loaders must implement.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Methods

exists()  : bool
getCacheKey()  : string
Gets the cache key to use for the cache for a given template name.
getSourceContext()  : Source
Returns the source context for a given template logical name.
isFresh()  : bool

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
Tags
throws
LoaderError

When $name is not found

Return values
string

getSourceContext()

Returns the source context for a given template logical name.

public getSourceContext(string $name) : Source
Parameters
$name : string
Tags
throws
LoaderError

When $name is not found

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

Tags
throws
LoaderError

When $name is not found

Return values
bool

        
On this page

Search results