]> git.mjollnir.org Git - moodle.git/commitdiff
Give the question bank code sensible PHPdocumentor package names.
authortjhunt <tjhunt>
Mon, 19 Mar 2007 17:22:46 +0000 (17:22 +0000)
committertjhunt <tjhunt>
Mon, 19 Mar 2007 17:22:46 +0000 (17:22 +0000)
16 files changed:
question/backuplib.php
question/category.php
question/category_class.php
question/edit.php
question/editlib.php
question/export.php
question/format.php
question/import.php
question/preview.php
question/question.php
question/question2.php
question/restorelib.php
question/showbank.php
question/tabs.php
question/type/edit_question_form.php
question/type/questiontype.php

index 8403024aba4ea4aeaaf92cdfb7bb09a74fa74654..51a49dbd85ac4f4fab047db832bd61b40710763d 100644 (file)
@@ -1,5 +1,10 @@
 <?php //$Id$
-    //This php script contains all the stuff to backup questions
+/**
+ * Question bank backup code.
+ *
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ *//** */
 
 //This is the "graphical" structure of the question database:
     //To see, put your terminal to 160cc
index de930d203540b676fef193fd399c70a1d764d7f9..265972c4af0648ff2ce3f2ad6627ae85a1a98e3a 100644 (file)
@@ -2,11 +2,10 @@
 /**
  * Allows a teacher to create, edit and delete categories
  *
- * @version $Id$
  * @author Martin Dougiamas and many others.
  *         {@link http://moodle.org}
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package question
+ * @package questionbank
  */
 
     require_once("../config.php");
index de9c46df4acc9c62871a6370ddd1b3e9c04973aa..e8815be290f7bf0c8a83fbcb1d677d560fb97a0b 100644 (file)
@@ -1,18 +1,20 @@
 <?php // $Id$
 /**
- * Class question_category_object
+ * Class representing question categories
  *
- * Used for handling changes to the question categories
- *
- * @version $Id$
  * @author Martin Dougiamas and many others. {@link http://moodle.org}
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package question
+ * @package questionbank
  */
 
 // number of categories to display on page
 define( "PAGE_LENGTH",25 );
 
+/**
+ * Class representing question categories
+ * 
+ * @package questionbank
+ */
 class question_category_object {
 
     var $str;
index a4c3a847afc809a7fddec663df9e94aaed28d96a..b28204018488f93eacc2df0874b1bf41bd3b34b8 100644 (file)
@@ -4,12 +4,11 @@
 *
 * TODO: add logging
 *
-* @version $Id$
 * @author Martin Dougiamas and many others. This has recently been extensively
 *         rewritten by Gustav Delius and other members of the Serving Mathematics project
 *         {@link http://maths.york.ac.uk/serving_maths}
 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
+* @package questionbank
 */
     require_once("../config.php");
     require_once("editlib.php");
index 82cbfdd0832dd53e0ca1e59e5e4fbf98de684c8f..c8b518a8056bc72e38a3321c14386b1dc014d940 100644 (file)
@@ -1,17 +1,16 @@
 <?php // $Id$
 /**
-* Functions used by showbank.php to show question editing interface
-*
-* TODO: currently the function question_list still provides controls specific
-*       to the quiz module. This needs to be generalised.
-*
-* @version $Id$
-* @author Martin Dougiamas and many others. This has recently been extensively
-*         rewritten by members of the Serving Mathematics project
-*         {@link http://maths.york.ac.uk/serving_maths}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
-*/
+ * Functions used by showbank.php to show question editing interface
+ *
+ * TODO: currently the function question_list still provides controls specific
+ *       to the quiz module. This needs to be generalised.
+ *
+ * @author Martin Dougiamas and many others. This has recently been extensively
+ *         rewritten by members of the Serving Mathematics project
+ *         {@link http://maths.york.ac.uk/serving_maths}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ */
 
 require_once($CFG->libdir.'/questionlib.php');
 
index 4437e6cef6e604a58a26f0d070d983c4b0d4cd02..13d9575998a63120d723a06cac08a03d38dd7b72 100644 (file)
@@ -1,13 +1,13 @@
 <?php // $Id$
 /**
-* Export quiz questions into the given category
-*
-* @version $Id$
-* @author Martin Dougiamas, Howard Miller, and many others.
-*         {@link http://moodle.org}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package quiz
-*/
+ * Export quiz questions into the given category
+ *
+ * @author Martin Dougiamas, Howard Miller, and many others.
+ *         {@link http://moodle.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ * @subpackage importexport
+ */
 
     require_once("../config.php");
     require_once( "editlib.php" );
index eb5c9f0b92beb98649716a22a238fa765878a561..94ad5f62b3380c22e77c06ca63f1f3de9b9e5a5d 100644 (file)
@@ -1,13 +1,22 @@
 <?php  // $Id$ 
-
-////////////////////////////////////////////////////////////////////
-/// format.php  - Default format class for file imports/exports.  //
-///                                                               //
-/// Doesn't do everything on it's own -- it needs to be extended. //
-////////////////////////////////////////////////////////////////////
-
-// Included by import.php and export.php
-
+/**
+ * Base class for question import and export formats.
+ *
+ * @author Martin Dougiamas, Howard Miller, and many others.
+ *         {@link http://moodle.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ * @subpackage importexport
+ *//** */
+
+/**
+ * Base class for question import and export formats.
+ * 
+ * Doesn't do everything on it's own -- it needs to be extended.
+ * 
+ * @package questionbank
+ * @subpackage importexport
+ */
 class qformat_default {
 
     var $displayerrors = true;
index fd34e2cf535aefc4b0c2d0dcbf8689744449f827..6a5900f5a1a84ab713aa53796d8499640c60f3f4 100644 (file)
@@ -1,13 +1,13 @@
 <?php // $Id$
 /**
-* Import quiz questions into the given category
-*
-* @version $Id$
-* @author Martin Dougiamas, Howard Miller, and many others.
-*         {@link http://moodle.org}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package quiz
-*/
+ * Import quiz questions into the given category
+ *
+ * @author Martin Dougiamas, Howard Miller, and many others.
+ *         {@link http://moodle.org}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ * @subpackage importexport
+ */
 
     require_once("../config.php");
     require_once("editlib.php" );
index b5389efd178293d126ee4089ae9e581145490bea..16ca53f5bc0022f30ab761b5b4ba6d71606a962c 100644 (file)
@@ -1,20 +1,19 @@
 <?php // $Id$
 /**
-* This page displays a preview of a question
-*
-* The preview uses the option settings from the activity within which the question
-* is previewed or the default settings if no activity is specified. The question session
-* information is stored in the session as an array of subsequent states rather
-* than in the database.
-*
-* TODO: make this work with activities other than quiz
-*
-* @version $Id$
-* @author Alex Smith as part of the Serving Mathematics project
-*         {@link http://maths.york.ac.uk/serving_maths}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
-*/
+ * This page displays a preview of a question
+ *
+ * The preview uses the option settings from the activity within which the question
+ * is previewed or the default settings if no activity is specified. The question session
+ * information is stored in the session as an array of subsequent states rather
+ * than in the database.
+ *
+ * TODO: make this work with activities other than quiz
+ *
+ * @author Alex Smith as part of the Serving Mathematics project
+ *         {@link http://maths.york.ac.uk/serving_maths}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ */
 
     require_once("../config.php");
     require_once($CFG->libdir.'/questionlib.php');
index 61615236abff7f517e5329d6f53c0c74e7b0fa8f..384948838d80fe537f9de4c0b26e83c6c6919be6 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php // $Id$
 /**
  * Page for editing questions
  *
  * TODO: currently this still treats the quiz as special
  * TODO: question versioning is not currently enabled
  *
- * @version $Id$
  * @author Martin Dougiamas and many others. This has recently been extensively
  *         rewritten by members of the Serving Mathematics project
  *         {@link http://maths.york.ac.uk/serving_maths}
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package question
+ * @package questionbank
  *//** */
 
     require_once(dirname(__FILE__) . '/../config.php');
index 8dd7bb4364da2d31ae016ab7c9c9a6a1015cfcea..bd5d40588c5ef534e39a734e4e2ca68050fad6cc 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author T.J.Hunt@open.ac.uk
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package question
+ * @package questionbank
  *//** */
 
 // Includes.
index 55e28cafe60bbe653610b4d3801b324dfe8289c3..a0a18b00add1457ca898cdbd6d9ab4080298a871 100644 (file)
@@ -1,5 +1,10 @@
 <?php //$Id$
-    //This php script contains all the stuff to restore questions
+/**
+ * Question bank restore code.
+ *
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ *//** */
 
 // Todo:
     // the restoration of the parent and sortorder fields in the category table needs
index 68c4e0987c95723fc11a857c552540f0e0de9aa7..02ff828732dcb8b95acf76361849060b0c2275e4 100644 (file)
@@ -1,22 +1,22 @@
 <?php // $Id$
 /**
-* Shows the question bank editing interface. To be included by other pages
-*
-* The script also processes a number of actions:
-* Actions affecting the question pool:
-* move         Moves a question to a different category
-* deleteselected Deletes the selected questions from the category
-* Other actions:
-* cat          Chooses the category
-* displayoptions Sets display options
-*
-* @version $Id$
-* @author Martin Dougiamas and many others. This has recently been extensively
-*         rewritten by Gustav Delius and other members of the Serving Mathematics project
-*         {@link http://maths.york.ac.uk/serving_maths}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
-*/
+ * Shows the question bank editing interface. To be included by other pages
+ *
+ * The script also processes a number of actions:
+ * 
+ * Actions affecting the question pool:
+ * move           Moves a question to a different category
+ * deleteselected Deletes the selected questions from the category
+ * Other actions:
+ * cat            Chooses the category
+ * displayoptions Sets display options
+ *
+ * @author Martin Dougiamas and many others. This has recently been extensively
+ *         rewritten by Gustav Delius and other members of the Serving Mathematics project
+ *         {@link http://maths.york.ac.uk/serving_maths}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ */
 
     // Make sure this can only be used from within Moodle scripts
     defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
index 8a64cfbbfa7f71cd2dad439dd7d19ce7c6c8f807..e34c0de23272ea38b5dc1df4a272ac83854281dc 100644 (file)
@@ -1,11 +1,10 @@
 <?php  // $Id$
 /**
-* Sets up the tabs used by the question bank editing page
-*
-* @version $Id$
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
-*/
+ * Sets up the tabs used by the question bank editing page
+ *
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ */
 
 /// This file to be included so we can assume config.php has already been included.
 
index 04d74e0e8016c7f0ebfe680361d4f7957131dcb1..505e56eb142287faf031048ec44e41a0b941d009 100644 (file)
@@ -5,7 +5,8 @@
  * @copyright &copy; 2006 The Open University
  * @author T.J.Hunt@open.ac.uk
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package quiz
+ * @package questionbank
+ * @subpackage questiontypes
  *//** */
 
 /**
@@ -13,6 +14,9 @@
  * all question types need. Question types should define their own
  * class that inherits from this one, and implements the definition_inner()
  * method.
+ * 
+ * @package questionbank
+ * @subpackage questiontypes
  */
 class question_edit_form extends moodleform {
     /**
index 69cabe8b7cf0ff07a829a6053e2730c5eb52fe9a..0bb442b140ee1539ae65f375e89509a8c5f092a5 100644 (file)
@@ -1,15 +1,15 @@
 <?php  // $Id$
 /**
-* The default questiontype class.
-*
-* @version $Id$
-* @author Martin Dougiamas and many others. This has recently been completely
-*         rewritten by Alex Smith, Julian Sedding and Gustav Delius as part of
-*         the Serving Mathematics project
-*         {@link http://maths.york.ac.uk/serving_maths}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package quiz
-*//** */
+ * The default questiontype class.
+ *
+ * @author Martin Dougiamas and many others. This has recently been completely
+ *         rewritten by Alex Smith, Julian Sedding and Gustav Delius as part of
+ *         the Serving Mathematics project
+ *         {@link http://maths.york.ac.uk/serving_maths}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package questionbank
+ * @subpackage questiontypes
+ *//** */
 
 require_once($CFG->libdir . '/questionlib.php');
 
@@ -25,6 +25,9 @@ require_once($CFG->libdir . '/questionlib.php');
  * experiences of the first few question type implementors, and improve the
  * interface to meet their needs, rather the freeze the API prematurely and
  * condem everyone to working round a clunky interface for ever afterwards.
+ * 
+ * @package questionbank
+ * @subpackage questiontypes
  */
 class default_questiontype {