public function truncateTable( $table )
    {
        $query = "DELETE FROM $table";

        $result = $this->execute( $query );

        if ( $result > 0 )
        {
            $this->execute( 'VACUUM' );

            return TRUE;
        }

        return FALSE;
    }
public function truncateTable( $table )
    {
        $query = "DELETE FROM $table";

        $result = $this->execute( $query );

        if ( $result > 0 )
        {
            $this->execute( 'VACUUM' );

            return TRUE;
        }

        return FALSE;
    }
public function truncateTable ( $ table ) { $ query = "DELETE FROM $table" ; $ result = $ this -> execute ( $ query ) ; if ( $ result > 0 ) { $ this -> execute ( 'VACUUM' ) ; return TRUE ; } return FALSE ; }
Deletes all records from a table.

@param string $table table name

@return bool TRUE on success, FALSE on failure
Deletes all records from a table .