public function VariableRealmDefaultController::variable_set in Variable 7
Set single variable.
Parameters
$name: Variable name
$value: Variable value
Overrides VariableRealmControllerInterface::variable_set
1 call to VariableRealmDefaultController::variable_set()
- VariableRealmGlobal::variable_set in variable_realm/
variable_realm.class.inc - Set single variable.
2 methods override VariableRealmDefaultController::variable_set()
- VariableRealmGlobal::variable_set in variable_realm/
variable_realm.class.inc - Set single variable.
- VariableStoreRealmController::variable_set in variable_store/
variable_store.class.inc - Set single variable.
File
- variable_realm/
variable_realm.class.inc, line 112 - Variable realm controller
Class
- VariableRealmDefaultController
- Base class, keeps static list of variables.
Code
public function variable_set($name, $value) {
$this
->variable_init();
$this->variables[$name] = $value;
}