Example #1
0
 /**
  * load the config-data from database.
  */
 private static function loadFromDb()
 {
     $sql = rex_sql::factory();
     $sql->setQuery('SELECT * FROM ' . rex::getTablePrefix() . 'config');
     self::$data = [];
     foreach ($sql as $cfg) {
         self::$data[$cfg->getValue('namespace')][$cfg->getValue('key')] = json_decode($cfg->getValue('value'), true);
     }
 }