File manager - Edit - /home/wwwroot/camplus.hk/pilot.camplus.hk/public_html/blocks/xp/block_xp.php
Back
<?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/>. /** * Block XP. * * @package block_xp * @copyright 2014 Frédéric Massart * @author Frédéric Massart <fred@branchup.tech> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); // Moodle expects a certain class to be found here, so we have to workaround it like this. $class = \block_xp\di::get('block_class'); if (!class_exists($class) || !is_subclass_of($class, 'block_base')) { throw new coding_exception('Block class does not pass validation, or does not exist.'); } class_alias($class, 'block_xp_block_class'); /** * Block XP class. * * Typically we do not need to do this, but some automated checks want to * make sure that we're creating the right class here. Adding this * shows green instead of red, and nobody likes red. * * @package block_xp * @copyright 2017 Frédéric Massart * @author Frédéric Massart <fred@branchup.tech> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class block_xp extends block_xp_block_class { }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 1.22 |
proxy
|
phpinfo
|
Settings