You are here

protected function VariableRealmDefaultController::createStore in Variable 7.2

Create Store for key.

1 call to VariableRealmDefaultController::createStore()
VariableRealmDefaultController::addStore in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::addStore().

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

protected function createStore($realm_key, $variables = NULL) {
  $class = $this
    ->getInfo('store class');
  $class = $class && class_exists($class) ? $class : 'VariableRealmDefaultStore';
  return new $class($this->realm_name, $realm_key, $variables);
}