Dotclear 2.25
|
Block node, for all <tpl:Tag>...</tpl:Tag> More...
Public Member Functions | |
__construct (string $tag, array $attr) | |
setClosing () | |
compile (template $tpl) | |
![]() | |
__construct (string $tag, array $attr) | |
setClosing () | |
isClosed () | |
compile (template $tpl) | |
getTag () | |
![]() | |
__construct () | |
setClosing () | |
compile (template $tpl) | |
addChild ($child) | |
setChildren ($children) | |
getParent () | |
getTag () | |
Static Public Member Functions | |
static | renderParent (template $tpl) |
static | reset () |
static | getStackBlock (string $name, template $tpl) |
Protected Attributes | |
$name | |
![]() | |
$tag | |
$attr | |
$closed | |
$content | |
![]() | |
$parentNode | |
$children | |
Static Protected Attributes | |
static | $stack = [] |
static | $current_block = null |
Additional Inherited Members | |
![]() | |
setParent ($parent) | |
Block node, for all <tpl:Tag>...</tpl:Tag>
__construct | ( | string | $tag, |
array | $attr | ||
) |
Block definition specific constructor : keep block name in mind
string | $tag | Current tag (might be "Block") |
array | $attr | Tag attributes (must contain "name" attribute) |
Reimplemented from tplNodeBlock.
References tplNodeBlock\$attr, and tplNodeBlock\$tag.
|
static |
Renders the parent block of currently being displayed block
template | $tpl | The current template engine instance |
References getStackBlock().
Referenced by tplNodeValueParent\compile().
|
static |
resets blocks stack
|
static |
Retrieves block defined in call stack
string | $name | The block name |
template | $tpl | The current template engine instance |
References $name, $ret, and $stack.
Referenced by renderParent().
setClosing | ( | ) |
Override tag closing processing. Here we enrich the block stack to keep block history.
Reimplemented from tplNodeBlock.
References tplNode\$children, and $name.
compile | ( | template | $tpl | ) |
Compile the block definition : grab latest block content being defined
template | $tpl | The current template engine instance |
Reimplemented from tplNodeBlock.
|
staticprotected |
Referenced by getStackBlock().
|
staticprotected |
|
protected |
Referenced by getStackBlock(), and setClosing().