class VariableRealmGlobal in Variable 7
Controller for default system variables.
Hierarchy
- class \VariableRealmDefaultController implements VariableRealmControllerInterface
- class \VariableRealmGlobal
Expanded class hierarchy of VariableRealmGlobal
1 string reference to 'VariableRealmGlobal'
- variable_realm_variable_realm_controller in variable_realm/
variable_realm.module - Implements hook_variable_realm_controller().
File
- variable_realm/
variable_realm.class.inc, line 145 - Variable realm controller
View source
class VariableRealmGlobal extends VariableRealmDefaultController {
/**
* 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);
}
}