You are here

public function VariableRealmDefaultController::getInfo in Variable 7.2

Implementation of VariableRealmControllerInterface::getInfo().

Overrides VariableRealmControllerInterface::getInfo

9 calls to VariableRealmDefaultController::getInfo()
VariableRealmDefaultController::createStore in variable_realm/variable_realm.class.inc
Create Store for key.
VariableRealmDefaultController::getAllKeys in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getAllKeys().
VariableRealmDefaultController::getAvailableVariables in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getAvailableVariables().
VariableRealmDefaultController::getDefaultKey in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getDefaultKey().
VariableRealmDefaultController::getDefaultWeight in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getWeight().

... See full list

File

variable_realm/variable_realm.class.inc, line 399
Variable realm controller

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function getInfo($property = NULL, $default = NULL) {
  $info = variable_realm_info($this->realm_name);
  if ($property) {
    return isset($info[$property]) ? $info[$property] : $default;
  }
  else {
    return $info;
  }
}