class BlockMacros extends MacroSet

Block macros.

Methods

static 
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

array|null
finalize()

Finishes template parsing.

macroInclude(MacroNode $node, PhpWriter $writer)

{include block}

macroIncludeBlock(MacroNode $node, PhpWriter $writer) deprecated

{includeblock "file"}

macroImport(MacroNode $node, PhpWriter $writer)

{import "file"}

macroExtends(MacroNode $node, PhpWriter $writer)

{extends 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}

Details

at line 36
static install(Compiler $compiler)

No description

Parameters

Compiler $compiler

at line 57
void initialize()

Initializes before template parsing.

Return Value

void

at line 69
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

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

{include block}

Parameters

MacroNode $node
PhpWriter $writer

at line 144
macroIncludeBlock(MacroNode $node, PhpWriter $writer) deprecated

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

at line 161
macroImport(MacroNode $node, PhpWriter $writer)

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer