protected function customInitAfterObjects()
 {
     $hostLangId = null;
     $configDBFilter = new ConfigDBFilter();
     if (Reg::get('packageMgr')->isPluginLoaded("Language", "HostLanguage")) {
         $hostName = ConfigManager::getConfig("Host", "Host")->Objects->Host;
         $languageName = ConfigManager::getConfig("Language", "Language")->ObjectsIgnored->Language;
         $hostLangId = HostLanguageManager::getHostLanguageId(Reg::get($hostName), Reg::get($languageName));
         $configDBFilter->setCommonOrHostLang($hostLangId);
     }
     ConfigDBManager::initDBConfig($configDBFilter);
 }
 /**
  * Get DB configs from DB and parse to Config objects
  * @param ConfigDBFilter $filter
  * @param unknown_type $cacheMinutes
  */
 public static function getAndParseDBConfigs(ConfigDBFilter $filter = null, $cacheMinutes = 0)
 {
     if ($filter == null) {
         $filter = new ConfigDBFilter();
     }
     $sql = MySqlDbManager::getQueryObject();
     $sql->exec($filter->getSQL(), $cacheMinutes);
     return static::parseDBRowsToConfig($sql->fetchRecords());
 }