function RulesContainerPlugin::exportChildren

5 calls to RulesContainerPlugin::exportChildren()
Rule::exportChildren in includes/rules.plugins.inc
RulesConditionContainer::exportChildren in includes/rules.core.inc
RulesContainerPlugin::exportToArray in includes/rules.core.inc
RulesLoop::exportChildren in includes/rules.plugins.inc
RulesRuleSet::exportChildren in includes/rules.plugins.inc
4 methods override RulesContainerPlugin::exportChildren()
Rule::exportChildren in includes/rules.plugins.inc
RulesConditionContainer::exportChildren in includes/rules.core.inc
RulesLoop::exportChildren in includes/rules.plugins.inc
RulesRuleSet::exportChildren in includes/rules.plugins.inc

File

includes/rules.core.inc, line 2440

Class

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

Code

protected function exportChildren($key = NULL) {
    $key = isset($key) ? $key : strtoupper($this->plugin());
    $export[$key] = array();
    foreach ($this->children as $child) {
        $export[$key][] = $child->export();
    }
    return $export;
}