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

This commit is contained in:
Tim Hunt
2011-02-23 16:00:20 +00:00
parent 7764183a4a
commit a17b297d60
294 changed files with 713 additions and 4127 deletions
+5 -1
View File
@@ -16,7 +16,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Sets up the tabs used by the quiz pages based on the users capabilites.
* Classes to enforce the various access rules that can apply to a quiz.
*
* @package mod
* @subpackage quiz
@@ -24,6 +24,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class keeps track of the various access rules that apply to a particular
* quiz, with convinient methods for seeing whether access is allowed.
+2
View File
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/formslib.php');
+1 -3
View File
@@ -28,9 +28,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
/**
@@ -22,8 +22,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/backup/moodle2/backup_quiz_stepslib.php'); // Because it exists (must)
/**
* quiz backup task that provides all the settings and steps to perform one
* complete backup of the activity
@@ -22,12 +22,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Define all the backup steps that will be used by the backup_quiz_activity_task
*/
defined('MOODLE_INTERNAL') || die();
/**
* Define the complete quiz structure for backup, with file and id annotations
* Define all the backup steps that will be used by the backup_quiz_activity_task
*/
class backup_quiz_activity_structure_step extends backup_questions_activity_structure_step {
@@ -22,10 +22,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/backup/moodle2/restore_quiz_stepslib.php'); // Because it exists (must)
/**
* quiz restore task that provides all the settings and steps to perform one
* complete restore of the activity
@@ -22,9 +22,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Define all the restore steps that will be used by the restore_quiz_activity_task
*/
defined('MOODLE_INTERNAL') || die();
/**
* Structure step to restore one quiz activity
+2
View File
@@ -24,6 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$capabilities = array(
// Ability to see that the quiz exists, and the basic information
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Code run after the quiz module database tables have been created.
*/
+2
View File
@@ -24,6 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$messageproviders = array (
// Notify teacher that a student has submitted a quiz attempt
'submission' => array (
+2
View File
@@ -24,4 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$subplugins = array('quiz' => 'mod/quiz/report');
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Quiz module upgrade function.
* @param string $oldversion the version we are upgrading from.
+2 -1
View File
@@ -30,8 +30,9 @@
*/
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
define('NUM_QS_TO_SHOW_IN_RANDOM', 3);
+2 -2
View File
@@ -28,9 +28,9 @@
*/
/** Require {@link eventslib.php} */
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/eventslib.php');
/** Require {@link calendar/lib.php} */
require_once($CFG->dirroot . '/calendar/lib.php');
+2 -7
View File
@@ -30,13 +30,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
/**
* Include those library functions that are also used by core Moodle or other modules
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/lib.php');
require_once($CFG->dirroot . '/mod/quiz/accessrules.php');
require_once($CFG->dirroot . '/mod/quiz/attemptlib.php');
@@ -44,7 +40,6 @@ require_once($CFG->dirroot . '/question/editlib.php');
require_once($CFG->libdir . '/eventslib.php');
require_once($CFG->libdir . '/filelib.php');
/// Constants ///////////////////////////////////////////////////////////////////
/**#@+
* Options determining how the grades from individual attempts are combined to give
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/course/moodleform_mod.php');
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die();
require_once $CFG->libdir.'/formslib.php';
+2
View File
@@ -27,6 +27,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/tablelib.php');
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Base class for quiz report plugins.
*
+2
View File
@@ -24,6 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$capabilities = array(
// Is the user allowed to see the student's real names while grading?
'quiz/grading:viewstudentnames' => array(
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/formslib.php');
+2
View File
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/report/grading/gradingsettings_form.php');
+2
View File
@@ -24,4 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011021400;
+5 -1
View File
@@ -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');
+2
View File
@@ -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');
+2
View File
@@ -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
+3
View File
@@ -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);
+2
View File
@@ -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;
+3
View File
@@ -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');
/**
+3
View File
@@ -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.
*/
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class has methods to compute the question statistics from the raw data.
*
+5 -2
View File
@@ -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.
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->dirroot . '/mod/quiz/report/statistics/qstats.php');
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
@@ -25,8 +25,11 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/formslib.php');
/**
* This is the settings form for the quiz statistics report.
*
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/tablelib.php');
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/tablelib.php');
+2
View File
@@ -24,4 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011021500;
+1 -1
View File
@@ -25,7 +25,7 @@
*/
defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/lib.php');
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
+1 -3
View File
@@ -26,9 +26,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
/**
+2 -3
View File
@@ -24,9 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/editlib.php');
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/lib.php');
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page.
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
+2 -2
View File
@@ -24,8 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$module->version = 2010122304; // The (date) version of this module
$module->requires = 2010080300; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Question behaviour for the old adaptive mode.
*
@@ -26,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for adaptive mode.
*
+3
View File
@@ -26,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the legacy
* adaptive behaviour.
@@ -27,6 +27,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -25,8 +25,11 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../adaptive/behaviour.php');
/**
* Question behaviour for adaptive mode, with no penalties.
*
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../adaptive/renderer.php');
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* The base class for question behaviours.
*
@@ -27,6 +27,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../deferredfeedback/behaviour.php');
@@ -26,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the deferred
* feedback with certainty based marking behaviour.
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Question behaviour for the case when the student's answer is just
* saved until they submit the whole attempt, and then it is graded.
@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for deferred feedback.
*
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the deferred
* feedback behaviour.
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Question behaviour where the student can submit questions one at a
* time for immediate feedback, with certainty based marking.
@@ -27,8 +26,11 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../immediatefeedback/behaviour.php');
/**
* Question behaviour for immediate feedback with CBM.
*
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../deferredcbm/renderer.php');
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -26,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for immediate feedback.
*
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the immediate
* feedback behaviour.
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains tests that walks a question through the immediate feedback
* behaviour.
@@ -27,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour informaiton items.
*
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the information
* item behaviour.
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -26,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for the interactive model.
*
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Renderer for outputting parts of a question belonging to the interactive
* behaviour.
@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Interactive behaviour renderer.
*
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../interactive/behaviour.php');
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../interactive/renderer.php');
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Question behaviour for questions that can only be graded manually.
*
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question belonging to the manual
* graded behaviour.
@@ -26,6 +26,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Fake question behaviour that is used when the actual qim was not
* available.
@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Fake question behaviour that is used when the actual behaviour
* is not available.
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question when the actual behaviour
* used is not available.
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
require_once(dirname(__FILE__) . '/../behaviour.php');
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This behaviour that is used when the actual qim was not
* available.
@@ -27,6 +26,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This behaviour is specifically for use with the Opaque question type.
*
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer for outputting parts of a question when the actual behaviour
* used is not available.
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../../../engine/lib.php');
require_once(dirname(__FILE__) . '/../../../engine/simpletest/helpers.php');
require_once(dirname(__FILE__) . '/../behaviour.php');
+3
View File
@@ -25,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* Renderer base class for question behaviours.
*
+2
View File
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
// number of categories to display on page
define('QUESTION_PAGE_LENGTH', 25);
+1 -3
View File
@@ -25,9 +25,7 @@
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/formslib.php');
+2 -2
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Functions used to show question editing interface
*
@@ -26,8 +25,9 @@
*/
require_once($CFG->libdir . '/questionlib.php');
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/questionlib.php');
define('DEFAULT_QUESTIONS_PER_PAGE', 20);
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* More object oriented wrappers around parts of the Moodle question bank.
*
@@ -30,6 +29,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This static class provides access to the other question bank.
*
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Code for loading and saving quiz attempts to and from the database.
*
@@ -26,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This class controls the loading and saving of question engine data to and from
* the database.
+2
View File
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/states.php');
require_once(dirname(__FILE__) . '/datalib.php');
require_once(dirname(__FILE__) . '/renderer.php');
+3 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Renderers for outputting parts of the question engine.
*
@@ -26,6 +25,9 @@
*/
defined('MOODLE_INTERNAL') || die();
/**
* This renderer controls the overall output of questions. It works with a
* {@link qbehaviour_renderer} and a {@link qtype_renderer} to output the
+2 -1
View File
@@ -15,7 +15,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains helper classes for testing the question engine.
*
@@ -26,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../lib.php');
@@ -25,6 +25,8 @@
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__) . '/../lib.php');

Some files were not shown because too many files have changed in this diff Show More