You are here

public function RulesContainerPlugin::__clone in Rules 7.2

By default we do a deep clone.

Overrides RulesPlugin::__clone

1 call to RulesContainerPlugin::__clone()
Rule::__clone in includes/rules.plugins.inc
By default we do a deep clone.
1 method overrides RulesContainerPlugin::__clone()
Rule::__clone in includes/rules.plugins.inc
By default we do a deep clone.

File

includes/rules.core.inc, line 2368
Rules base classes and interfaces needed for any rule evaluation.

Class

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

Code

public function __clone() {
  parent::__clone();
  foreach ($this->children as $key => $child) {
    $this->children[$key] = clone $child;
    $this->children[$key]->parent = $this;
  }
}