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 194
string macroIncludeBlock(MacroNode $node, PhpWriter $writer) deprecated

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{block [local] [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{define [local] name}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippet [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippetArea [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{/embed}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false