PHP Class Flow\Template

Mostra file Open project: nramenta/flow

Protected Properties

Property Type Description
$blocks
$helpers
$imports
$loader
$macros
$parent
$stack

Public Methods

Method Description
__construct ( $loader, $helpers = [] )
display ( $context = [], $blocks = [], $macros = [], $imports = [] )
displayBlock ( $name, $context, $blocks, $macros, $imports )
displayParent ( $name, $context, $blocks, $macros, $imports )
expandMacro ( $module, $name, $params, $context, $macros, $imports )
getAttr ( $obj, $attr, $args = [] )
getBlocks ( )
getImports ( )
getLineTrace ( Exception $e = null )
getMacros ( )
helper ( $name, $args = [] )
iterate ( $context, $seq )
loadExtends ( $template )
loadImport ( $template )
loadInclude ( $template )
popContext ( &$context, $name )
pushContext ( &$context, $name )
render ( $context = [], $blocks = [], $macros = [], $imports = [] )
setAttr ( &$obj, $attrs, $value )

Method Details

__construct() public method

public __construct ( $loader, $helpers = [] )

display() abstract public method

abstract public display ( $context = [], $blocks = [], $macros = [], $imports = [] )

displayBlock() public method

public displayBlock ( $name, $context, $blocks, $macros, $imports )

displayParent() public method

public displayParent ( $name, $context, $blocks, $macros, $imports )

expandMacro() public method

public expandMacro ( $module, $name, $params, $context, $macros, $imports )

getAttr() public method

public getAttr ( $obj, $attr, $args = [] )

getBlocks() public method

public getBlocks ( )

getImports() public method

public getImports ( )

getLineTrace() public method

public getLineTrace ( Exception $e = null )
$e Exception

getMacros() public method

public getMacros ( )

helper() public method

public helper ( $name, $args = [] )

iterate() public method

public iterate ( $context, $seq )

loadExtends() public method

public loadExtends ( $template )

loadImport() public method

public loadImport ( $template )

loadInclude() public method

public loadInclude ( $template )

popContext() public method

public popContext ( &$context, $name )

pushContext() public method

public pushContext ( &$context, $name )

render() public method

public render ( $context = [], $blocks = [], $macros = [], $imports = [] )

setAttr() public method

public setAttr ( &$obj, $attrs, $value )

Property Details

$blocks protected_oe property

protected $blocks

$helpers protected_oe property

protected $helpers

$imports protected_oe property

protected $imports

$loader protected_oe property

protected $loader

$macros protected_oe property

protected $macros

$parent protected_oe property

protected $parent

$stack protected_oe property

protected $stack