You are here

public function VariableRealmUnionController::__construct in Variable 7.2

Implementation of VariableRealmControllerInterface::__construct().

Overrides VariableRealmDefaultController::__construct

File

variable_realm/variable_realm_union.class.inc, line 15
Classes for Realm Union.

Class

VariableRealmUnionController
Default Realm Union class

Code

public function __construct($realm_name) {
  parent::__construct($realm_name);

  // Get / create realm controllers for each of the union realms.
  foreach ($this
    ->getParentRealms() as $realm_name) {
    $this->union_realms[$realm_name] = variable_realm_controller($realm_name);
  }
}