\Smarty_Internal_Block

Smarty {block} tag class

Summary

Methods
Properties
Constants
__construct()
callBlock()
$name
$hide
$append
$prepend
$callsChild
$child
$parent
$tplIndex
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Block name

Type

string

$hide

$hide : boolean

Hide attribute

Type

boolean

$append

$append : boolean

Append attribute

Type

boolean

$prepend

$prepend : boolean

prepend attribute

Type

boolean

$callsChild

$callsChild : boolean

Block calls {$smarty.block.child}

Type

boolean

$parent

$parent : \Smarty_Internal_Block|null

Inheritance calling parent block

Type

\Smarty_Internal_Block|null

$tplIndex

$tplIndex : integer

Inheritance Template index

Type

integer

Methods

__construct()

__construct(string  $name, integer|null  $tplIndex) 

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

string $name

block name

integer|null $tplIndex

index of outer level {block} if nested

callBlock()

callBlock(\Smarty_Internal_Template  $tpl) 

Compiled block code overloaded by {block} class

Parameters

\Smarty_Internal_Template $tpl