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 26
__construct(Compiler $compiler)

No description

Parameters

Compiler $compiler

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

No description

Parameters

$name
$begin
$end
$attr

at line 53
void initialize()

Initializes before template parsing.

Return Value

void

at line 62
finalize()

Finishes template parsing.

at line 71
bool nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool

at line 121
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 151
Compiler getCompiler()

No description

Return Value

Compiler