class BlockMacros extends MacroSet

Block macros.

Properties

string $snippetAttribute

Methods

static void
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

finalize()

Finishes template parsing.

string|false
macroInclude(MacroNode $node, PhpWriter $writer)

{include block [,] [params]}

string
macroIncludeBlock(MacroNode $node, PhpWriter $writer) deprecated

{includeblock "file"}

string
macroImport(MacroNode $node, PhpWriter $writer)

{import "file"}

void
macroExtends(MacroNode $node, PhpWriter $writer)

{extends none | $var | "file"}

string
macroBlock(MacroNode $node, PhpWriter $writer)

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

string
macroBlockEnd(MacroNode $node, PhpWriter $writer)

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

string|false
macroIfset(MacroNode $node, PhpWriter $writer)

{ifset block} {elseifset block}

Details

at line 42
static void install(Compiler $compiler)

No description

Parameters

Compiler $compiler

Return Value

void

at line 63
void initialize()

Initializes before template parsing.

Return Value

void

at line 75
finalize()

Finishes template parsing.

at line 106
string|false macroInclude(MacroNode $node, PhpWriter $writer)

{include block [,] [params]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 172
string macroImport(MacroNode $node, PhpWriter $writer)

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 192
void macroExtends(MacroNode $node, PhpWriter $writer)

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

at line 221
string macroBlock(MacroNode $node, PhpWriter $writer)

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 370
string macroBlockEnd(MacroNode $node, PhpWriter $writer)

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 428
string|false macroIfset(MacroNode $node, PhpWriter $writer)

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false