mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
MDL-47494 ddimageortext: Fix @package names and PHPdoc layout.
This commit is contained in:
parent
c205413ad9
commit
5b4602d267
9 changed files with 69 additions and 55 deletions
|
@ -15,15 +15,16 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the editing form for the drag-and-drop words into sentences question type.
|
* Defines the editing form for the drag-and-drop words into sentences question type.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php');
|
require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,17 +15,14 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Language strings for the select missing words question type.
|
|
||||||
*
|
*
|
||||||
* @package qtype
|
* @package qtype
|
||||||
* @subpackage gapselect
|
* @subpackage ddwtos
|
||||||
* @copyright 2011 The Open University
|
* @copyright 2011 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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$string['addingddwtos'] = 'Adding drag and drop: words in text';
|
$string['addingddwtos'] = 'Adding drag and drop: words in text';
|
||||||
$string['addmorechoiceblanks'] = 'Blanks for {no} More Choices';
|
$string['addmorechoiceblanks'] = 'Blanks for {no} More Choices';
|
||||||
$string['answer'] = 'Answer';
|
$string['answer'] = 'Answer';
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
/**
|
/**
|
||||||
* Drag-and-drop words into sentences question definition class.
|
* Drag-and-drop words into sentences question definition class.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
@ -33,7 +34,7 @@ require_once($CFG->dirroot . '/question/type/gapselect/questionbase.php');
|
||||||
* @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 qtype_ddwtos_question extends qtype_gapselect_question_base {
|
class qtype_ddwtos_question extends qtype_gapselect_question_base {
|
||||||
//is actually exactly the same.
|
// Is actually exactly the same.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Question type class for the drag-and-drop words into sentences question type.
|
* Question type class for the drag-and-drop words into sentences question type.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
@ -28,9 +28,9 @@
|
||||||
require_once($CFG->libdir . '/questionlib.php');
|
require_once($CFG->libdir . '/questionlib.php');
|
||||||
require_once($CFG->dirroot . '/question/engine/lib.php');
|
require_once($CFG->dirroot . '/question/engine/lib.php');
|
||||||
require_once($CFG->dirroot . '/question/format/xml/format.php');
|
require_once($CFG->dirroot . '/question/format/xml/format.php');
|
||||||
|
|
||||||
require_once($CFG->dirroot . '/question/type/gapselect/questiontypebase.php');
|
require_once($CFG->dirroot . '/question/type/gapselect/questiontypebase.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The drag-and-drop words into sentences question type class.
|
* The drag-and-drop words into sentences question type class.
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,15 +15,16 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Drag-and-drop words into sentences question renderer class.
|
* Drag-and-drop words into sentences question renderer class.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @copyright 2010 The Open University
|
* @copyright 2010 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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php');
|
require_once($CFG->dirroot . '/question/type/gapselect/rendererbase.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,19 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test helpers for the drag-and-drop words into sentences question type.
|
||||||
|
*
|
||||||
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
|
* @copyright 2010 The Open University
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test helper class for the drag-and-drop words into sentences question type.
|
* Test helper class for the drag-and-drop words into sentences question type.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
|
||||||
* @copyright 2010 The Open University
|
* @copyright 2010 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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,15 +15,16 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the drag-and-drop words into sentences question definition class.
|
* Unit tests for the drag-and-drop words into sentences question definition class.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @copyright 2010 The Open University
|
* @copyright 2010 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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
|
require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
|
||||||
require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php');
|
require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php');
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for the drag-and-drop words into sentences question definition class.
|
* Unit tests for the drag-and-drop words into sentences question definition class.
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @copyright 2010 The Open University
|
* @copyright 2010 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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,12 +15,11 @@
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file contains tests that walks a question through the interactive
|
* Unit tests for the drag-and-drop words into sentences question type.
|
||||||
* behaviour.
|
|
||||||
*
|
*
|
||||||
* @package qtype_ddwtos
|
* @package qtype
|
||||||
|
* @subpackage ddwtos
|
||||||
* @copyright 2010 The Open University
|
* @copyright 2010 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
|
||||||
*/
|
*/
|
||||||
|
@ -30,6 +29,12 @@ require_once($CFG->dirroot . '/question/engine/simpletest/helpers.php');
|
||||||
require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php');
|
require_once($CFG->dirroot . '/question/type/ddwtos/simpletest/helper.php');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unit tests for the drag-and-drop words into sentences question type.
|
||||||
|
*
|
||||||
|
* @copyright 2010 The Open University
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
class qtype_ddwtos_walkthrough_test extends qbehaviour_walkthrough_test_base {
|
class qtype_ddwtos_walkthrough_test extends qbehaviour_walkthrough_test_base {
|
||||||
|
|
||||||
protected function get_contains_drop_box_expectation($place, $group, $readonly, $stateclass = '0') {
|
protected function get_contains_drop_box_expectation($place, $group, $readonly, $stateclass = '0') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue