Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]
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 namespace tool_brickfield\local\tool; 18 19 /** 20 * Class advanced. 21 * 22 * @package tool_brickfield 23 * @copyright 2020 onward: Brickfield Education Labs, www.brickfield.ie 24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 25 */ 26 class advanced extends tool { 27 28 /** 29 * Provide a name for this tool, suitable for display on pages. 30 * @return mixed|string 31 * @throws \coding_exception 32 */ 33 public static function toolname() { 34 return get_string('advanced:toolname', 'tool_brickfield'); 35 } 36 37 /** 38 * Provide a short name for this tool, suitable for menus and selectors. 39 * @return mixed|string 40 * @throws \coding_exception 41 */ 42 public static function toolshortname() { 43 return get_string('advanced:toolshortname', 'tool_brickfield'); 44 } 45 46 /** 47 * Provide a lowercase name identifying this plugin. Should really be the same as the directory name. 48 * @return string 49 */ 50 public function pluginname() { 51 return 'advanced'; 52 } 53 54 /** 55 * Return the data for renderer / template display. 56 * @return \stdClass 57 */ 58 protected function fetch_data(): \stdClass { 59 $data = (object)[ 60 'valid' => true, 61 'error' => '', 62 ]; 63 64 return $data; 65 } 66 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body