class BlockMacros extends MacroSet

Block macros.

Methods

static 
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

finalize()

Finishes template parsing.

macroInclude(MacroNode $node, PhpWriter $writer)

{include #block}

macroIncludeBlock(MacroNode $node, PhpWriter $writer)

{includeblock "file"}

macroExtends(MacroNode $node, PhpWriter $writer)

{extends auto | none | $var | "file"}

macroBlock(MacroNode $node, PhpWriter $writer)

{block [[#]name]} {snippet [name [,]] [tag]} {snippetArea [name]} {define [#]name}

macroBlockEnd(MacroNode $node, PhpWriter $writer)

{/block} {/snippet} {/snippetArea} {/define}

macroIfset(MacroNode $node, PhpWriter $writer)

{ifset #block} {elseifset #block}

static void
callBlock(stdClass $context, $name, array $params)

Calls block.

static void
callBlockParent(stdClass $context, $name, array $params)

Calls parent block.

Details

at line 31
static install(Compiler $compiler)

No description

Parameters

Compiler $compiler

at line 51
void initialize()

Initializes before template parsing.

Return Value

void

at line 62
finalize()

Finishes template parsing.

at line 108
macroInclude(MacroNode $node, PhpWriter $writer)

{include #block}

Parameters

MacroNode $node
PhpWriter $writer

at line 143
macroIncludeBlock(MacroNode $node, PhpWriter $writer)

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

at line 153
macroExtends(MacroNode $node, PhpWriter $writer)

{extends auto | none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

at line 181
macroBlock(MacroNode $node, PhpWriter $writer)

{block [[#]name]} {snippet [name [,]] [tag]} {snippetArea [name]} {define [#]name}

Parameters

MacroNode $node
PhpWriter $writer

at line 274
macroBlockEnd(MacroNode $node, PhpWriter $writer)

{/block} {/snippet} {/snippetArea} {/define}

Parameters

MacroNode $node
PhpWriter $writer

at line 310
macroIfset(MacroNode $node, PhpWriter $writer)

{ifset #block} {elseifset #block}

Parameters

MacroNode $node
PhpWriter $writer

at line 331
static void callBlock(stdClass $context, $name, array $params)

Calls block.

Parameters

stdClass $context
$name
array $params

Return Value

void

at line 345
static void callBlockParent(stdClass $context, $name, array $params)

Calls parent block.

Parameters

stdClass $context
$name
array $params

Return Value

void