Smarty_Internal_Block
Smarty {block} tag class
- Full name:
\Smarty_Internal_Block
Properties
name
Block name
hide
Hide attribute
append
Append attribute
prepend
prepend attribute
callsChild
Block calls $smarty.block.child
child
Inheritance child block
parent
Inheritance calling parent block
tplIndex
Inheritance Template index
Methods
__construct
Smarty_Internal_Block constructor.
- if outer level {block} of child template ($state === 1) save it as child root block
- otherwise process inheritance and render
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | block name |
$tplIndex |
int|null | index of outer level {block} if nested |
callBlock
Compiled block code overloaded by {block} class
Parameters:
Parameter | Type | Description |
---|---|---|
$tpl |
\Smarty_Internal_Template |
Automatically generated on 2025-03-18