protected function deleteZip($backup_id)
    {
        $backup = $this->get($backup_id);

        if (empty($backup['path'])) {
            return false;
        }

        $file = gplcart_file_absolute($backup['path']);
        return file_exists($file) && unlink($file);
    }
protected function deleteZip($backup_id)
    {
        $backup = $this->get($backup_id);

        if (empty($backup['path'])) {
            return false;
        }

        $file = gplcart_file_absolute($backup['path']);
        return file_exists($file) && unlink($file);
    }
protected function deleteZip ( $ backup_id ) { $ backup = $ this -> get ( $ backup_id ) ; if ( empty ( $ backup [ 'path' ] ) ) { return false ; } $ file = gplcart_file_absolute ( $ backup [ 'path' ] ) ; return file_exists ( $ file ) && unlink ( $ file ) ; }
Deletes a backup ZIP archive
@param integer $backup_id
@return boolean
Deletes a backup ZIP archive