Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
mod_assign\downloader Class Reference

Class to download user submissions. More...

Public Member Functions

 __construct (assign $manager, ?array $userids=null)
 Class constructor.
 
 download_zip ()
 Download the exported zip.
 
 load_filelist ()
 Load the filelist.
 

Protected Attributes

array $filesforzipping
 $filesforzipping the files to zipo (path => file)
 

Detailed Description

Class to download user submissions.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_assign\downloader::__construct ( assign $manager,
?array $userids = null )

Class constructor.

Parameters
assign$managerthe instance manager
array | null$useridsthe user ids to download.

Member Function Documentation

◆ download_zip()

mod_assign\downloader::download_zip ( )

Download the exported zip.

This method will terminate the current script when the file is send.

◆ load_filelist()

mod_assign\downloader::load_filelist ( )

Load the filelist.

Return values
booltrue if there are some files to zip.

The documentation for this class was generated from the following file: