public function VariableRealmDefaultController::variable_init in Variable 7
Initialize variables.
Overrides VariableRealmControllerInterface::variable_init
5 calls to VariableRealmDefaultController::variable_init()
- VariableRealmDefaultController::variable_add in variable_realm/
variable_realm.class.inc - Implementation of VariableRealmControllerInterface::variable_add().
- VariableRealmDefaultController::variable_del in variable_realm/
variable_realm.class.inc - Delete single variable.
- VariableRealmDefaultController::variable_get in variable_realm/
variable_realm.class.inc - Get single variable.
- VariableRealmDefaultController::variable_list in variable_realm/
variable_realm.class.inc - List all current variable values.
- VariableRealmDefaultController::variable_set in variable_realm/
variable_realm.class.inc - Set single variable.
2 methods override VariableRealmDefaultController::variable_init()
- VariableRealmGlobal::variable_init in variable_realm/
variable_realm.class.inc - Initialize variables.
- VariableStoreRealmController::variable_init in variable_store/
variable_store.class.inc - Initialize realm.
File
- variable_realm/
variable_realm.class.inc, line 87 - Variable realm controller
Class
- VariableRealmDefaultController
- Base class, keeps static list of variables.
Code
public function variable_init() {
if (!isset($this->variables)) {
$this->variables = array();
}
}