You are here

public function RulesAbstractPlugin::__construct in Rules 7.2

Parameters

string $name: The plugin implementation's name.

$settings: (optional) Further information provided about the plugin.

Throws

RulesException If validation of the passed settings fails RulesExceptions are thrown.

Overrides RulesExtendable::__construct

File

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

Class

RulesAbstractPlugin
Defines a common base class for so-called "Abstract Plugins" like actions.

Code

public function __construct($name = NULL, $settings = array()) {
  $this->elementName = $name;
  $this->settings = (array) $settings + array(
    '#_needs_processing' => TRUE,
  );
  $this
    ->setUp();
}