static function getAll() { if (self::$_scopes === null) { $res = TBGScopesTable::getTable()->doSelectAll(); $scopes = array(); while ($row = $res->getNextRow()) { $scope = TBGContext::factory()->TBGScope($row->get(TBGScopesTable::ID), $row); $scopes[$scope->getID()] = $scope; } self::$_scopes = $scopes; } return self::$_scopes; }
/** * Return all available scopes * * @return array|TBGScope */ static function getAll() { if (self::$_scopes === null) { self::$_scopes = TBGScopesTable::getTable()->selectAll(); } return self::$_scopes; }