Ejemplo n.º 1
0
 /**
  * @name getListTables
  * @param array
  */
 public function getListTables()
 {
     try {
         $results = array();
         if (self::$config->type == 'mysql') {
             $params = new stdClass();
             $params->sql = "SHOW TABLES LIKE '" . self::$config->prefixTable . "%';";
             $req = $this->connection->prepare($params->sql);
             $req->execute();
             $resultats = $req->fetchAll();
             $req->closeCursor();
             foreach ($resultats as $value) {
                 $strTables = str_replace(self::$config->prefixTable, "", $value[0]);
                 $results[] = $strTables;
             }
         }
         return $results;
     } catch (Exception $ex) {
         throw new Exception($ex);
     }
 }