Commit a17b297d authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-20636 Add missing defined('MOODLE_INTERNAL') || die();

parent 7764183a
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/formslib.php');
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/report/grading/gradingsettings_form.php');
......
......@@ -24,4 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011021400;
......@@ -25,10 +25,14 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Quiz overview report upgrade function.
* @param number $oldversion
*/function xmldb_quiz_overview_upgrade($oldversion) {
*/
function xmldb_quiz_overview_upgrade($oldversion) {
global $CFG, $DB;
$dbman = $DB->get_manager();
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This is a table subclass for displaying the quiz grades report.
*
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/formslib.php');
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot.'/mod/quiz/report/attemptsreport.php');
require_once($CFG->dirroot.'/mod/quiz/report/overview/overviewsettings_form.php');
require_once($CFG->dirroot.'/mod/quiz/report/overview/overview_table.php');
......
......@@ -24,4 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011021600; // The (date) version of this module
......@@ -24,6 +24,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/lib.php');
define('QUIZ_REPORT_DEFAULT_PAGE_SIZE', 30);
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot.'/mod/quiz/report/attemptsreport.php');
require_once($CFG->dirroot.'/mod/quiz/report/responses/responsessettings_form.php');
require_once($CFG->dirroot.'/mod/quiz/report/responses/responses_table.php');
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This is a table subclass for displaying the quiz responses report.
*
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/formslib.php');
......
......@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../../config.php');
global $CFG;
......
......@@ -24,6 +24,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/question/engine/compatibility.php');
/**
......
......@@ -23,6 +23,9 @@
* @copyright 2008 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$capabilities = array(
'quiz/statistics:view' => array(
'captype' => 'read',
......
......@@ -24,6 +24,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Post-install script
*/
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Quiz statistics report upgrade code.
*/
......
......@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class has methods to compute the question statistics from the raw data.
*
......
......@@ -25,19 +25,22 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_form.php');
require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_table.php');
require_once($CFG->dirroot . '/mod/quiz/report/statistics/statistics_question_table.php');
require_once($CFG->dirroot . '/mod/quiz/report/statistics/qstats.php');
require_once($CFG->dirroot . '/mod/quiz/report/statistics/responseanalysis.php');
/**
* The quiz statistics report provides summary information about each question in
* a quiz, compared to the whole quiz. It also provides a drill-down to more
* detailed information about each question.
*
* @copyright 2008 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2008 Jamie Pratt
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class quiz_statistics_report extends quiz_default_report {
/** @var integer Time after which statistics are automatically recomputed. */
......
......@@ -26,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class can store and compute the analysis of the responses to a particular
* question.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment