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 namespace logstore_legacy\event; 18 19 defined('MOODLE_INTERNAL') || die(); 20 21 /** 22 * Legacy log emulation event class. 23 * 24 * @package core 25 * @since Moodle 2.7 26 * @copyright 2013 Petr Skoda {@link http://skodak.org} 27 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 28 */ 29 class legacy_logged extends \core\event\base { 30 31 public function init() { 32 throw new \coding_exception('legacy events cannot be triggered'); 33 } 34 35 public static function get_name() { 36 return get_string('eventlegacylogged', 'logstore_legacy'); 37 } 38 39 public function get_description() { 40 return $this->other['module'] . ' ' . $this->other['action'] . ' ' . $this->other['info']; 41 } 42 43 public function get_url() { 44 global $CFG; 45 require_once("$CFG->dirroot/course/lib.php"); 46 47 $url = \make_log_url($this->other['module'], $this->other['url']); 48 if (!$url) { 49 return null; 50 } 51 return new \moodle_url($url); 52 } 53 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body