MDL-20636 Boilerplate and other cleanup in the question core code.

This includes converting behaviours to pluginname strings.
This commit is contained in:
Tim Hunt
2011-02-21 18:00:15 +00:00
parent f7c1dfaf79
commit aa9bdbe31c
24 changed files with 463 additions and 93 deletions

View File

@@ -1,5 +1,29 @@
// This script, and the YUI libraries that it needs, are inluded by
// the $PAGE->requires->js calls in question_get_html_head_contributions in lib/questionlib.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/>.
/**
* JavaScript library for dealing with the question flags.
*
* This script, and the YUI libraries that it needs, are inluded by
* the $PAGE->requires->js calls in question_get_html_head_contributions in lib/questionlib.php.
*
* @package moodlecore
* @subpackage questionengine
* @copyright 2010 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
M.core_question_flags = {
flagattributes: null,