You are here

public function Rule::getIterator in Rules 7.2

Return value

RulesRecursiveElementIterator

Overrides RulesContainerPlugin::getIterator

File

includes/rules.plugins.inc, line 282
Contains plugin info and implementations not needed for rule evaluation.

Class

Rule
An actual rule.

Code

public function getIterator() {
  $array = array_merge(array(
    $this->conditions,
  ), $this->children);
  return new RulesRecursiveElementIterator($array);
}