class MacroSet extends Object implements IMacro

Base IMacro implementation. Allows add multiple macros.

Methods

__construct(Compiler $compiler)

No description

addMacro($name, $begin, $end = NULL, $attr = NULL)

No description

void
initialize()

Initializes before template parsing.

finalize()

Finishes template parsing.

bool
nodeOpened(MacroNode $node)

New node is found.

void
nodeClosed(MacroNode $node)

Node is closed.

getCompiler()

No description

Details

at line 28
__construct(Compiler $compiler)

No description

Parameters

Compiler $compiler

at line 34
addMacro($name, $begin, $end = NULL, $attr = NULL)

No description

Parameters

$name
$begin
$end
$attr

at line 55
void initialize()

Initializes before template parsing.

Return Value

void

at line 64
finalize()

Finishes template parsing.

at line 73
bool nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool

at line 107
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 137
Compiler getCompiler()

No description

Return Value

Compiler