class VariableRealmGlobalStore in Variable 7.2
Controller for default system variables.
Hierarchy
- class \VariableRealmDefaultStore implements VariableRealmStoreInterface
- class \VariableRealmGlobalStore
Expanded class hierarchy of VariableRealmGlobalStore
1 string reference to 'VariableRealmGlobalStore'
- variable_realm_variable_realm_info in variable_realm/
variable_realm.module - Implements hook_variable_realm_info().
File
- variable_realm/
variable_realm.class.inc, line 513 - Variable realm controller
View source
class VariableRealmGlobalStore extends VariableRealmDefaultStore {
/**
* Initialize variables.
*/
public function variable_init() {
if (!isset($this->variables)) {
$this->variables = $GLOBALS['conf'];
}
}
/**
* Set single variable.
*
* @param $name
* Variable name
* @param $value
* Variable value
*/
public function variable_set($name, $value) {
parent::variable_set($name, $value);
variable_set($name, $value);
}
/**
* Delete single variable.
*
* @param $name
* Variable name
*/
public function variable_del($name) {
parent::variable_del($name);
variable_del($name);
}
}