class MacroSet implements IMacro

Base IMacro implementation. Allows add multiple macros.

Methods

__construct(Compiler $compiler)

No description

addMacro($name, $begin, $end = null, $attr = null, $flags = null)

No description

void
initialize()

Initializes before template parsing.

array|null
finalize()

Finishes template parsing.

bool|null
nodeOpened(MacroNode $node)

New node is found.

void
nodeClosed(MacroNode $node)

Node is closed.

getCompiler()

No description

checkExtraArgs(MacroNode $node)

No description

Details

at line 29
__construct(Compiler $compiler)

No description

Parameters

Compiler $compiler

at line 35
addMacro($name, $begin, $end = null, $attr = null, $flags = null)

No description

Parameters

$name
$begin
$end
$attr
$flags

at line 56
void initialize()

Initializes before template parsing.

Return Value

void

at line 65
array|null finalize()

Finishes template parsing.

Return Value

array|null

[prolog, epilog]

at line 74
bool|null nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool|null

at line 126
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 154
Compiler getCompiler()

No description

Return Value

Compiler

at line 161
protected checkExtraArgs(MacroNode $node)

internal  
 

No description

Parameters

MacroNode $node

Traits

Better OOP experience.