class BlockMacros extends MacroSet

Block macros.

Properties

string $snippetAttribute

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 41
static void install(Compiler $compiler)

No description

Parameters

Compiler $compiler

Return Value

void

at line 62
void initialize()

Initializes before template parsing.

Return Value

void

at line 74
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

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

{include block}

Parameters

MacroNode $node
PhpWriter $writer

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

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

Parameters

MacroNode $node
PhpWriter $writer

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer