PHP Interface Phrozn\Processor

Author: Victor Farazdagi
Afficher le fichier Open project: farazdagi/phrozn

Méthodes publiques

Méthode Description
getConfig ( ) : array Get processor configuration
render ( string $tpl, array $vars = [] ) : string Parse the incoming template
setConfig ( array $options ) : Phrozn\Processor Gateway to pass concrete Processor some configuration options

Method Details

getConfig() public méthode

Get processor configuration
public getConfig ( ) : array
Résultat array

render() public méthode

Parse the incoming template
public render ( string $tpl, array $vars = [] ) : string
$tpl string Source template content
$vars array List of variables passed to template engine
Résultat string Processed template

setConfig() public méthode

Gateway to pass concrete Processor some configuration options
public setConfig ( array $options ) : Phrozn\Processor
$options array Options to pass to engine
Résultat Phrozn\Processor