You are here

public function RulesActionContainer::__construct in Rules 7.2

Overrides RulesContainerPlugin::__construct

1 call to RulesActionContainer::__construct()
Rule::__construct in includes/rules.plugins.inc
3 methods override RulesActionContainer::__construct()
Rule::__construct in includes/rules.plugins.inc
RulesEventSet::__construct in includes/rules.plugins.inc
RulesLoop::__construct in includes/rules.plugins.inc

File

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

Class

RulesActionContainer
Base class for all action containers.

Code

public function __construct($variables = array(), $providesVars = array()) {
  parent::__construct($variables);

  // The provided vars of a component are the names of variables, which should
  // be provided to the caller. See rule().
  if ($providesVars) {
    $this->info['provides'] = $providesVars;
  }
}