Merge branch 'MDL-51445_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_S...
[moodle.git] / mod / scorm / classes / report.php
blob60be5f32929d43acd4f04b7333dac844c9e40c52
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.
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 * @package mod_scorm
18 * @author Ankit Kumar Agarwal
19 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22 namespace mod_scorm;
24 /*******************************************************************/
25 // Default class for Scorm plugins
27 // Doesn't do anything on it's own -- it needs to be extended.
28 // This class displays scorm reports. Because it is called from
29 // within /mod/scorm/report.php you can assume that the page header
30 // and footer are taken care of.
32 // This file can refer to itself as report.php to pass variables
33 // to itself - all these will also be globally available.
34 /*******************************************************************/
36 defined('MOODLE_INTERNAL') || die();
38 class report {
39 /**
40 * displays the full report
41 * @param stdClass $scorm full SCORM object
42 * @param stdClass $cm - full course_module object
43 * @param stdClass $course - full course object
44 * @param string $download - type of download being requested
46 public function display($scorm, $cm, $course, $download) {
47 // This function just displays the report.
48 return true;
50 /**
51 * allows the plugin to control who can see this plugin.
52 * @return boolean
54 public function canview($contextmodule) {
55 return true;