PHP Class Latte\Loaders\StringLoader

Inheritance: extends Latte\Object, implements Latte\ILoader
Datei anzeigen Open project: nette/latte

Public Methods

Method Description
__construct ( array $templates = NULL )
getContent ( $name ) : string Returns template source code.
getReferredName ( $name, $referringName ) : string Returns referred template name.
getUniqueId ( $name ) : string Returns unique identifier for caching.
isExpired ( $name, $time ) : boolean

Method Details

__construct() public method

public __construct ( array $templates = NULL )
$templates array

getContent() public method

Returns template source code.
public getContent ( $name ) : string
return string

getReferredName() public method

Returns referred template name.
public getReferredName ( $name, $referringName ) : string
return string

getUniqueId() public method

Returns unique identifier for caching.
public getUniqueId ( $name ) : string
return string

isExpired() public method

public isExpired ( $name, $time ) : boolean
return boolean