You are here

public function RulesContainerPlugin::destroy in Rules 7.2

Removes circular object references so PHP garbage collector can work.

Overrides RulesPlugin::destroy

1 call to RulesContainerPlugin::destroy()
Rule::destroy in includes/rules.plugins.inc
Removes circular object references so PHP garbage collector can work.
1 method overrides RulesContainerPlugin::destroy()
Rule::destroy in includes/rules.plugins.inc
Removes circular object references so PHP garbage collector can work.

File

includes/rules.core.inc, line 2358
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 destroy() {
  foreach ($this->children as $key => $child) {
    $child
      ->destroy();
  }
  parent::destroy();
}