public function finalise_content() : string {
        $this->write_html_data();

        $exportfile = make_request_directory() . '/export.zip';

        $fp = get_file_packer();
        $fp->archive_to_pathname($this->files, $exportfile);

        // Reset the writer to prevent any further writes.
        writer::reset();

        return $exportfile;
    }
public function finalise_content() : string {
        $this->write_html_data();

        $exportfile = make_request_directory() . '/export.zip';

        $fp = get_file_packer();
        $fp->archive_to_pathname($this->files, $exportfile);

        // Reset the writer to prevent any further writes.
        writer::reset();

        return $exportfile;
    }
public function finalise_content ( ) : string { $ this -> write_html_data ( ) ; $ exportfile = make_request_directory ( ) . '/export.zip' ; $ fp = get_file_packer ( ) ; $ fp -> archive_to_pathname ( $ this -> files , $ exportfile ) ; // Reset the writer to prevent any further writes. writer :: reset ( ) ; return $ exportfile ; }
Perform any required finalisation steps and return the location of the finalised export.

@return  string
Perform any required finalisation steps and return the location of the finalised export .