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); }
public static function getStackDebug($stack) { $list = []; foreach (\Staq\Util::getStackDefinition($stack) as $key => $stackable) { $debug = []; $debug['query'] = \Staq\Util::getStackableQuery($stackable); $debug['extension'] = \Staq\Util::getStackableExtension($stackable); $list[] = $debug; } return $list; }