class BlockMacros extends MacroSet

Block macros.

Methods

static void
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]} {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 38
static void install(Compiler $compiler)

No description

Parameters

Compiler $compiler

Return Value

void

at line 59
void initialize()

Initializes before template parsing.

Return Value

void

at line 71
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

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

{include block}

Parameters

MacroNode $node
PhpWriter $writer

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer