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] name [,] [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 [local] [name]}

string
macroDefine(MacroNode $node, PhpWriter $writer)

{define [local] name}

string
macroSnippet(MacroNode $node, PhpWriter $writer)

{snippet [name]}

string
macroSnippetArea(MacroNode $node, PhpWriter $writer)

{snippetArea [name]}

string
macroBlockEnd(MacroNode $node, PhpWriter $writer)

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

string
macroEmbed(MacroNode $node, PhpWriter $writer)

{embed "file"}

string
macroEmbedEnd(MacroNode $node, PhpWriter $writer)

{/embed}

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

{ifset block} {elseifset block}

Details

at line 47
static void install(Compiler $compiler)

No description

Parameters

Compiler $compiler

Return Value

void

at line 69
void initialize()

Initializes before template parsing.

Return Value

void

at line 82
finalize()

Finishes template parsing.

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

{include [block] name [,] [params]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{block [local] [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 319
string macroDefine(MacroNode $node, PhpWriter $writer)

{define [local] name}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 410
string macroSnippet(MacroNode $node, PhpWriter $writer)

{snippet [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 510
string macroSnippetArea(MacroNode $node, PhpWriter $writer)

{snippetArea [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 582
string macroEmbed(MacroNode $node, PhpWriter $writer)

{embed "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 601
string macroEmbedEnd(MacroNode $node, PhpWriter $writer)

{/embed}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false