/** * Returns the default scope * * @return TBGScope */ public static function getDefaultScopeID() { if (self::$_defaultscope === null) { self::$_defaultscope = TBGScopeHostnamesTable::getTable()->getScopeIDForHostname('*'); } return self::$_defaultscope; }
/** * Returns the default scope * * @return TBGScope */ public static function getDefaultScope() { throw new Exception("This function is deprecated. Default scope is always 1"); if (self::$_defaultscope === null) { $row = B2DB::getTable('TBGSettingsTable')->getDefaultScope(); self::$_defaultscope = TBGContext::factory()->TBGScope($row->get(TBGSettingsTable::VALUE)); } return self::$_defaultscope; }