MDL-62781 question/privacy: fix tests with CodeRunner is installed
[moodle.git] / lib / uploadlib.php
blob8d8ed4257685e86227d4958bf0eccafbb020e3b4
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * uploadlib.php - This class handles all aspects of fileuploading
21 * @package core
22 * @subpackage file
23 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27 defined('MOODLE_INTERNAL') || die();
29 /**
30 * This class handles all aspects of fileuploading
32 * @deprecated since 2.7 - use new file pickers instead
34 * @package moodlecore
35 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
36 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38 class upload_manager {
40 /**
41 * Constructor, sets up configuration stuff so we know how to act.
43 * 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.
45 * @deprecated since 2.7 - use new file pickers instead
48 function __construct($inputname='', $deleteothers=false, $handlecollisions=false, $course=null, $recoverifmultiple=false, $modbytes=0, $silent=false, $allownull=false, $allownullmultiple=true) {
49 throw new coding_exception('upload_manager class can not be used any more, please use file picker instead');