class BlockMacros extends MacroSet

Block macros.

Properties

string $snippetAttribute

Methods

static void
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

array{string,
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]}

void
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)

Parameters

Compiler $compiler

Return Value

void

at line 69
void initialize()

Initializes before template parsing.

Return Value

void

at line 82
array{string, finalize()

Finishes template parsing.

Return Value

array{string, string}|array{string}|null (prolog, epilog)

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

deprecated

{includeblock "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{import "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{extends none | $var | "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{block [local] [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{define [local] name}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippet [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{snippetArea [name]}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

at line 529
void macroBlockEnd(MacroNode $node, PhpWriter $writer)

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

Parameters

MacroNode $node
PhpWriter $writer

Return Value

void

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

{embed "file"}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{/embed}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string

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

{ifset block} {elseifset block}

Parameters

MacroNode $node
PhpWriter $writer

Return Value

string|false