See Release Notes
Long Term Support Release
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * User button. Adapted from core_select_user_button. 19 * 20 * @package gradereport_history 21 * @copyright 2013 NetSpot Pty Ltd (https://www.netspot.com.au) 22 * @author Adam Olley <adam.olley@netspot.com.au> 23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 24 */ 25 26 namespace gradereport_history\output; 27 28 defined('MOODLE_INTERNAL') || die; 29 30 /** 31 * A button that is used to select users for a form. 32 * 33 * @since Moodle 2.8 34 * @package gradereport_history 35 * @copyright 2013 NetSpot Pty Ltd (https://www.netspot.com.au) 36 * @author Adam Olley <adam.olley@netspot.com.au> 37 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 38 */ 39 class user_button extends \single_button implements \renderable { 40 /** 41 * Initialises the new select_user_button. 42 * 43 * @param \moodle_url $url 44 * @param string $label The text to display in the button 45 * @param string $method Either post or get 46 */ 47 public function __construct(\moodle_url $url, $label, $method = 'post') { 48 parent::__construct($url, $label, $method); 49 $this->class = 'singlebutton selectusersbutton gradereport_history_plugin'; 50 $this->formid = \html_writer::random_id('selectusersbutton'); 51 } 52 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body