Пример #1
0
 function getAllDBTables()
 {
     $dbtbl = array();
     foreach ($this->_db->_query("show tables")->fetchAll(PDO::FETCH_NUM) as $table) {
         $dbtbl[] = $table[0];
     }
     ReportService::$tables = $dbtbl;
     //        $sql = "show tables in " . $this->_db->getDatabase();
     //        $tbls = $this->_db->sql($sql)->fetch_all();
     //        if ($tbls) {
     //            foreach ($tbls as $tbl) {
     //                $dbtbl[] = array($tbl['Tables_in_' . $this->_db->getDatabase()], $tbl['Tables_in_' . $this->_db->getDatabase()]);
     //            }
     //        }
     return $dbtbl;
 }