PHP Class Latte\Loaders\FileLoader

Inheritance: implements Latte\ILoader, use trait Latte\Strict
Afficher le fichier Open project: nette/latte Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $baseDir = NULL )
getContent ( $file ) : string Returns template source code.
getReferredName ( $file, $referringFile ) : string Returns referred template name.
getUniqueId ( $file ) : string Returns unique identifier for caching.
isExpired ( $file, $time ) : boolean

Private Methods

Méthode Description
normalizePath ( $path ) : string

Method Details

__construct() public méthode

public __construct ( $baseDir = NULL )

getContent() public méthode

Returns template source code.
public getContent ( $file ) : string
Résultat string

getReferredName() public méthode

Returns referred template name.
public getReferredName ( $file, $referringFile ) : string
Résultat string

getUniqueId() public méthode

Returns unique identifier for caching.
public getUniqueId ( $file ) : string
Résultat string

isExpired() public méthode

public isExpired ( $file, $time ) : boolean
Résultat boolean