You are here

function rules_variable::_set_data in Rules 6

2 calls to rules_variable::_set_data()
rules_variable::construct in rules/rules.variables.inc
Constructor
rules_variable::get in rules/rules.variables.inc
Gets the actual data. Be sure to keep the reference intact.

File

rules/rules.variables.inc, line 326
Provides functions and classes for handling variables

Class

rules_variable
Handles loading and saving a variable

Code

function _set_data(&$data) {
  if (isset($data)) {
    $this->data = rules_get_data_object($this->info);

    // Set the data in the data object and make sure to keep a reference intact
    $this->data
      ->init($data);
  }
}