4 * Smarty {block} tag class
7 * @subpackage PluginsInternal
10 class Smarty_Internal_Block
31 public $append = false;
38 public $prepend = false;
41 * Block calls {$smarty.block.child}
45 public $callsChild = false;
48 * Inheritance child block
50 * @var Smarty_Internal_Block|null
55 * Inheritance calling parent block
57 * @var Smarty_Internal_Block|null
59 public $parent = null;
62 * Inheritance Template index
69 * Smarty_Internal_Block constructor.
70 * - if outer level {block} of child template ($state == 1) save it as child root block
71 * - otherwise process inheritance and render
73 * @param string $name block name
74 * @param int|null $tplIndex index of outer level {block} if nested
76 public function __construct($name, $tplIndex)
79 $this->tplIndex = $tplIndex;
83 * Compiled block code overloaded by {block} class
85 * @param \Smarty_Internal_Template $tpl
87 public function callBlock(Smarty_Internal_Template $tpl)