PHP Interface Phrozn\Processor

Author: Victor Farazdagi
Show file Open project: farazdagi/phrozn

Public Methods

Method 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 method

Get processor configuration
public getConfig ( ) : array
return array

render() public method

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
return string Processed template

setConfig() public method

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