Beispiel #1
0
 protected function loadStackParentClass($class)
 {
     $queryExtension = \Staq\Util::getStackableExtension($class);
     $query = \Staq\Util::getParentStackQuery($class);
     $ready = FALSE;
     while ($query) {
         foreach (array_keys($this->extensions) as $extensionNamespace) {
             if ($ready) {
                 if ($realClass = $this->getRealClass($query, $extensionNamespace)) {
                     $this->createClassAlias($class, $realClass);
                     return TRUE;
                 }
             } else {
                 if ($queryExtension === $extensionNamespace) {
                     $ready = TRUE;
                 }
             }
         }
         $query = \Staq\Util::popStackQuery($query);
         $ready = TRUE;
     }
     $this->createClassEmpty($class);
 }