public function getDBTables($force_fetch = false) {
        if ($this->_tables && !$force_fetch) return $this->_tables;

        $res = QC::executeSQL('SHOW TABLES');
        $this->_tables = array();
        if ($res->rowCount()) {
            $res = $res->fetchAll(\PDO::FETCH_NUM);
            foreach($res as $info) {
                $this->_tables[$info[0]] = array('name'=>$info[0]);
            }
        }
        return $this->_tables;
    }
public function getDBTables($force_fetch = false) {
        if ($this->_tables && !$force_fetch) return $this->_tables;

        $res = QC::executeSQL('SHOW TABLES');
        $this->_tables = array();
        if ($res->rowCount()) {
            $res = $res->fetchAll(\PDO::FETCH_NUM);
            foreach($res as $info) {
                $this->_tables[$info[0]] = array('name'=>$info[0]);
            }
        }
        return $this->_tables;
    }
public function getDBTables ( $ force_fetch = false ) { if ( $ this -> _tables && ! $ force_fetch ) return $ this -> _tables ; $ res = QC :: executeSQL ( 'SHOW TABLES' ) ; $ this -> _tables = array ( ) ; if ( $ res -> rowCount ( ) ) { $ res = $ res -> fetchAll ( \ PDO :: FETCH_NUM ) ; foreach ( $ res as $ info ) { $ this -> _tables [ $ info [ 0 ] ] = array ( 'name' => $ info [ 0 ] ) ; } } return $ this -> _tables ; }
Return list of tables from connected database
@param bool $force_fetch reload tables list
@return array|null
Return list of tables from connected database