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}

void
macroEmbed(MacroNode $node, PhpWriter $writer)

{embed [block|file] name [,] [params]}

void
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 125
string|false macroInclude(MacroNode $node, PhpWriter $writer)

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{block [local] [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{define [local] name}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippet [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippetArea [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 589
void macroEmbed(MacroNode $node, PhpWriter $writer)

{embed [block|file] name [,] [params]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

at line 632
void macroEmbedEnd(MacroNode $node, PhpWriter $writer)

{/embed}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false