function RulesContainerPlugin::getIterator

Allows access to the children through the iterator.

Return value

RulesRecursiveElementIterator

2 calls to RulesContainerPlugin::getIterator()
Rule::actions in includes/rules.plugins.inc
Gets an iterator over all contained actions.
RulesContainerPlugin::sortChildren in includes/rules.core.inc
Sorts all child elements by their weight.
1 method overrides RulesContainerPlugin::getIterator()
Rule::getIterator in includes/rules.plugins.inc

File

includes/rules.core.inc, line 2238

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function getIterator() {
    return new RulesRecursiveElementIterator($this->children);
}