You are here

public function RulesContainerPlugin::integrityCheck in Rules 7.2

Return value

RulesContainerPlugin

Overrides RulesPlugin::integrityCheck

2 calls to RulesContainerPlugin::integrityCheck()
Rule::integrityCheck in includes/rules.plugins.inc
Makes sure the plugin is configured right.
RulesLoop::integrityCheck in includes/rules.plugins.inc
Makes sure the plugin is configured right.
2 methods override RulesContainerPlugin::integrityCheck()
Rule::integrityCheck in includes/rules.plugins.inc
Makes sure the plugin is configured right.
RulesLoop::integrityCheck in includes/rules.plugins.inc
Makes sure the plugin is configured right.

File

includes/rules.core.inc, line 2226
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 integrityCheck() {
  if (!empty($this->info['variables']) && !$this
    ->isRoot()) {
    throw new RulesIntegrityException(t('%plugin: Specifying state variables is not possible for child elements.', array(
      '%plugin' => $this
        ->getPluginName(),
    )), $this);
  }
  parent::integrityCheck();
  foreach ($this->children as $child) {
    $child
      ->integrityCheck();
  }
  return $this;
}