示例#1
0
 /**
  * list all database table's
  *
  * @return array
  */
 static function listTable()
 {
     $results = self::$db->fetchAll("SHOW TABLES");
     $nb = count($results);
     for ($a = 0; $a < $nb; $a++) {
         $_tables[]['name'] = $results[$a][key($results[$a])];
     }
     self::$tables = $_tables;
     return $_tables;
 }