Пример #1
0
 private static function getDbConfig()
 {
     $configs = Frapi_Internal::getDB()->query($sql)->fetchAll();
     $conf = array();
     foreach ($configs as $key => $value) {
         $conf[$value['key']] = $value['value'];
     }
     unset($configs);
     unset($db);
     return $conf;
 }
Пример #2
0
 /**
  * Test Internal class can init DB.
  *
  **/
 public function testInitDB()
 {
     $db = Frapi_Internal::getDB();
     $this->assertTrue($db instanceof PDO);
 }