class ForeachNode extends StatementNode

{foreach $expr as $key => $value} & {else}

Properties

$expression
$key
$byRef
$value
$content
$else
$elseLine
$iterator
$checkArgs

Methods

static Generator
create(Tag $tag)

No description

string
print(PrintContext $context)

No description

getIterator()

No description

static void
overwrittenVariablesPass(TemplateNode $node)

Pass: checks if foreach overrides template variables.

Details

at line 46
static Generator create(Tag $tag)

No description

Parameters

Tag $tag

Return Value

Generator

at line 85
string print(PrintContext $context)

No description

Parameters

PrintContext $context

Return Value

string

at line 139
Generator getIterator()

No description

Return Value

Generator

at line 156
static void overwrittenVariablesPass(TemplateNode $node)

Pass: checks if foreach overrides template variables.

Parameters

TemplateNode $node

Return Value

void