public function RulesState::__construct in Rules 7.2
Constructs a RulesState object.
File
- includes/
rules.state.inc, line 57 - Contains the state and data related stuff.
Class
- RulesState
- The rules evaluation state.
Code
public function __construct() {
// Use an object in order to ensure any cloned states reference the same
// save information.
$this->save = new ArrayObject();
$this
->addVariable('site', FALSE, self::defaultVariables('site'));
}