Class Smarty_Internal_Runtime_Inheritance
Inheritance Runtime Methods processBlock, endChild, init
Author: Uwe Tews
Located at tpl/smarty/sysplugins/smarty_internal_runtime_inheritance.php
Methods summary
public
|
#
init(
Initialize inheritance |
public
|
#
endChild( )
End of child template(s) - if outer level is reached flush output buffer and switch to wait for parent template state |
public
|
#
instanceBlock(
Smarty_Internal_Block constructor. - if outer level {block} of child template ($state == 1) save it as child root block - otherwise process inheritance and render |
public
|
#
process(
Goto child block or render this |
public
|
#
callChild(
Render child on {$smarty.block.child} |
public
|
#
callParent(
Render parent on {$smarty.block.parent} or {block append/prepend} * |
public
|
Properties summary
public
integer
|
$state
State machine - 0 idle next extends will create a new inheritance tree - 1 processing child template - 2 wait for next inheritance template - 3 assume parent template, if child will loaded goto state 1 a call to a sub template resets the state to 0 |
#
0
|
public
|
$childRoot
Array of root child {block} objects |
#
array()
|
public
integer
|
$inheritanceLevel
inheritance template nesting level |
#
0
|
public
integer
|
$tplIndex
inheritance template index |
#
- 1
|
public
|
$sources
Array of template source objects - key template index |
#
array()
|
public
|
$sourceStack
Stack of source objects while executing block code |
#
array()
|