Inheritance Runtime Methods processBlock, endChild, init
Methods | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public
|
init(Smarty_Internal_Template $tpl, bool $initChild, array $blockNames = [])
Initialize inheritance
Initialize inheritance Parameters
|
# | ||||||||||
public
|
endChild(Smarty_Internal_Template $tpl, null|string $template = null, null|string $uid = null, null|string $func = null)
End of child template(s)
- if outer level is reached flush output buffer and switch to wait for parent template state
End of child template(s)
Parameters
Throws
|
# | ||||||||||
public
|
instanceBlock(Smarty_Internal_Template $tpl, $className, string $name, int|null $tplIndex = null)
Smarty_Internal_Block constructor.
- if outer level {block} of child template ($state === 1) save it as child root…
Smarty_Internal_Block constructor.
Parameters
Throws
|
# | ||||||||||
public
|
process(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block, Smarty_Internal_Block|null $parent = null)
Goto child block or render this
|
# | ||||||||||
public
|
callChild(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block): null|string
Render child on \$smarty.block.child
|
# | ||||||||||
public
|
callParent(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block, string $tag): null|string
Render parent block on \$smarty.block.parent or {block append/prepend}
Render parent block on $smarty.block.parent or {block append/prepend} Returnsblock content Throws
|
# | ||||||||||
public
|
callBlock(Smarty_Internal_Block $block, Smarty_Internal_Template $tpl)
render block
render block |
# |
Properties | |||
---|---|---|---|
public
|
int
|
$state = 0
|
# |
public
|
Smarty_Internal_Block[]
|
$childRoot = []
|
# |
public
|
int
|
$inheritanceLevel = 0
|
# |
public
|
int
|
$tplIndex = -1
|
# |
public
|
Smarty_Template_Source[]
|
$sources = []
|
# |
public
|
Smarty_Template_Source[]
|
$sourceStack = []
|
# |