Daniia/Daniia.php
final public function truncate() {
      $this->connection();
      $this->sql = "TRUNCATE TABLE {$this->table};";

      if($this->driver=='firebird'||$this->driver=='sqlite')
         $this->sql = "DELETE FROM {$this->table};";

      // $this->fetch(false);
      $this->fetch();

      return $this->resultset?true:false;
   }
final public function truncate() {
      $this->connection();
      $this->sql = "TRUNCATE TABLE {$this->table};";

      if($this->driver=='firebird'||$this->driver=='sqlite')
         $this->sql = "DELETE FROM {$this->table};";

      // $this->fetch(false);
      $this->fetch();

      return $this->resultset?true:false;
   }
final public function truncate ( ) { $ this -> connection ( ) ; $ this -> sql = "TRUNCATE TABLE {$this->table};" ; if ( $ this -> driver == 'firebird' || $ this -> driver == 'sqlite' ) $ this -> sql = "DELETE FROM {$this->table};" ; // $this->fetch(false); $ this -> fetch ( ) ; return $ this -> resultset ? true : false ; }
elimina todos los datos de una tabla
@author Carlos Garcia
@return boolean
elimina todos los datos de una tabla