Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
upload_manager Class Reference

This class handles all aspects of fileuploading. More...

Public Member Functions

 __construct ($inputname='', $deleteothers=false, $handlecollisions=false, $course=null, $recoverifmultiple=false, $modbytes=0, $silent=false, $allownull=false, $allownullmultiple=true)
 Constructor, sets up configuration stuff so we know how to act. More...
 

Detailed Description

This class handles all aspects of fileuploading.

Deprecated:
since 2.7 - use new file pickers instead
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

upload_manager::__construct (   $inputname = '',
  $deleteothers = false,
  $handlecollisions = false,
  $course = null,
  $recoverifmultiple = false,
  $modbytes = 0,
  $silent = false,
  $allownull = false,
  $allownullmultiple = true 
)

Constructor, sets up configuration stuff so we know how to act.

Note: destination not taken as parameter as some modules want to use the insertid in the path and we need to check the other stuff first.

Deprecated:
since 2.7 - use new file pickers instead

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