Commit 7764183a authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-20636 Fix @package names and PHPdoc layout.

parent 017bc1d9
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_aiken', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_aiken', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_aiken * @package qformat
* @copyright 2010 Helen Foster * @subpackage aiken
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['aiken'] = 'Aiken format'; $string['aiken'] = 'Aiken format';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_blackboard', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_blackboard', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_blackboard * @package qformat
* @copyright 2010 Helen Foster * @subpackage blackboard
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['blackboard'] = 'Blackboard'; $string['blackboard'] = 'Blackboard';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_blackboard_six', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_blackboard_six', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_blackboard_six * @package qformat
* @copyright 2010 Helen Foster * @subpackage blackboard_six
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['blackboard_six'] = 'Blackboard V6+'; $string['blackboard_six'] = 'Blackboard V6+';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_examview', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_examview', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_examview * @package qformat
* @copyright 2010 Helen Foster * @subpackage examview
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['examview'] = 'Examview'; $string['examview'] = 'Examview';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_gift', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_gift', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_gift * @package qformat
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @subpackage gift
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['nohandler'] = 'No handler for question type {$a}'; $string['nohandler'] = 'No handler for question type {$a}';
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
/** /**
* Unit tests for the Moodle GIFT format. * Unit tests for the Moodle GIFT format.
* *
* @package qformat_xml * @package qformat
* @copyright 2010 The Open University * @subpackage gift
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
require_once($CFG->libdir . '/questionlib.php'); require_once($CFG->libdir . '/questionlib.php');
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_learnwise', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_learnwise', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_learnwise * @package qformat
* @copyright 2010 Helen Foster * @subpackage learnwise
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['learnwise'] = 'Learnwise format'; $string['learnwise'] = 'Learnwise format';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_missingword', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_missingword', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_missingword * @package qformat
* @copyright 2010 Helen Foster * @subpackage missingword
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['missingword'] = 'Missing word format'; $string['missingword'] = 'Missing word format';
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
/** /**
* Embedded answer (Cloze) question importer. * Embedded answer (Cloze) question importer.
* *
* @package qformat * @package qformat
* @subpackage qformat_multianswer * @subpackage multianswer
* @copyright 2003 Henrik Kaipe * @copyright 2003 Henrik Kaipe
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
* Importer that imports a text file containing a single Multianswer question * Importer that imports a text file containing a single Multianswer question
* from a text file. * from a text file.
* *
* @copyright 2003 Henrik Kaipe * @copyright 2003 Henrik Kaipe
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class qformat_multianswer extends qformat_default { class qformat_multianswer extends qformat_default {
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_multianswer', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_multianswer', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_multianswer * @package qformat
* @copyright 2010 Helen Foster * @subpackage multianswer
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['multianswer'] = 'Embedded answers (Cloze)'; $string['multianswer'] = 'Embedded answers (Cloze)';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_qti_two', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_qti_two', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_qti_two * @package qformat
* @copyright 2010 Helen Foster * @subpackage qti_two
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['qti_two'] = 'IMS QTI 2.0 format'; $string['qti_two'] = 'IMS QTI 2.0 format';
......
...@@ -31,11 +31,8 @@ ...@@ -31,11 +31,8 @@
* @param int courseid * @param int courseid
* @return array containing filenames * @return array containing filenames
* @calledfrom type/<typename>/editquestion.php * @calledfrom type/<typename>/editquestion.php
* @package questionbank
* @subpackage importexport
*/ */
function get_course_media_files($courseid) function get_course_media_files($courseid) {
{
// this code lifted from mod/quiz/question.php and modified // this code lifted from mod/quiz/question.php and modified
throw new coding_exception('qti_two not converted to new fil api yet, sorry'); throw new coding_exception('qti_two not converted to new fil api yet, sorry');
/*global $CFG; /*global $CFG;
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_webct', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_webct', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_webct * @package qformat
* @copyright 2010 Helen Foster * @subpackage webct
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['webct'] = 'WebCT format'; $string['webct'] = 'WebCT format';
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_xhtml', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_xhtml', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_xhtml * @package qformat
* @copyright 2010 Helen Foster * @subpackage xhtml
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 Helen Foster
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['xhtml'] = 'XHTML format'; $string['xhtml'] = 'XHTML format';
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
/** /**
* Code for exporting questions as Moodle XML. * Code for exporting questions as Moodle XML.
* *
* @package qformat * @package qformat
* @subpackage xml * @subpackage xml
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
...@@ -36,7 +36,7 @@ require_once($CFG->libdir . '/xmlize.php'); ...@@ -36,7 +36,7 @@ require_once($CFG->libdir . '/xmlize.php');
* See http://docs.moodle.org/en/Moodle_XML_format for a description of the format. * See http://docs.moodle.org/en/Moodle_XML_format for a description of the format.
* *
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class qformat_xml extends qformat_default { class qformat_xml extends qformat_default {
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qformat_xml', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qformat_xml', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qformat_xml * @package qformat
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @subpackage xml
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['invalidxml'] = 'Invalid XML file - string expected (use CDATA?)'; $string['invalidxml'] = 'Invalid XML file - string expected (use CDATA?)';
......
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
/** /**
* Unit tests for the Moodle XML format. * Unit tests for the Moodle XML format.
* *
* @package qformat_xml * @package qformat
* @copyright 2010 The Open University * @subpackage xml
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 2010 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
require_once($CFG->libdir . '/questionlib.php'); require_once($CFG->libdir . '/questionlib.php');
...@@ -31,8 +32,8 @@ require_once($CFG->dirroot . '/question/format/xml/format.php'); ...@@ -31,8 +32,8 @@ require_once($CFG->dirroot . '/question/format/xml/format.php');
/** /**
* Unit tests for the matching question definition class. * Unit tests for the matching question definition class.
* *
* @copyright 2009 The Open University * @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class qformat_xml_test extends UnitTestCase { class qformat_xml_test extends UnitTestCase {
public function assert_same_xml($expectedxml, $xml) { public function assert_same_xml($expectedxml, $xml) {
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
* than in the database. * than in the database.
* *
* @package moodlecore * @package moodlecore
* @subpackage questionbank * @subpackage questionengine
* @copyright Alex Smith {@link http://maths.york.ac.uk/serving_maths} and * @copyright Alex Smith {@link http://maths.york.ac.uk/serving_maths} and
* numerous contributors. * numerous contributors.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
......
...@@ -18,9 +18,10 @@ ...@@ -18,9 +18,10 @@
/** /**
* Strings for component 'qtype_calculated', language 'en', branch 'MOODLE_20_STABLE' * Strings for component 'qtype_calculated', language 'en', branch 'MOODLE_20_STABLE'
* *
* @package qtype_calculated * @package qtype
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @subpackage calculated
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string['addingcalculated'] = 'Adding a calculated question'; $string['addingcalculated'] = 'Adding a calculated question';
......
...@@ -18,11 +18,16 @@ ...@@ -18,11 +18,16 @@
/** /**
* Serve question type files * Serve question type files
* *
* @since 2.0 * @since 2.0
* @package questionbank * @package qtype
* @subpackage questiontypes * @subpackage calculated
* @author Dongsheng Cai <dongsheng@moodle.com> * @copyright Dongsheng Cai <dongsheng@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Checks file access for calculated questions.
*/ */
function qtype_calculated_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload) { function qtype_calculated_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload) {
global $CFG; global $CFG;
......
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