|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| provide_import () | |
| unxmlise ($xml) | |
| parse_matching_groups ($matching_groups) | |
| parse_ma ($qrec, $groupname) | |
| process_matches (&$questions) | |
| cleanUnicode ($text) | |
| readquestions ($lines) | |
| readquestion ($qrec) | |
| parse_tf_yn ($qrec, $question) | |
| parse_mc ($qrec, $question) | |
| parse_co ($qrec, $question) | |
| parse_sa ($qrec, $question) | |
| parse_nr ($qrec, $question) | |
Data Fields | |
| $qtypes | |
| $matching_questions = array() | |
Examview question importer.
Definition at line 38 of file format.php.
| cleanUnicode | ( | $ | text | ) |
| parse_co | ( | $ | qrec, |
| $ | question | ||
| ) |
Definition at line 265 of file format.php.


| parse_ma | ( | $ | qrec, |
| $ | groupname | ||
| ) |
Definition at line 112 of file format.php.


| parse_matching_groups | ( | $ | matching_groups | ) |
Definition at line 88 of file format.php.


| parse_mc | ( | $ | qrec, |
| $ | question | ||
| ) |
Definition at line 244 of file format.php.


| parse_nr | ( | $ | qrec, |
| $ | question | ||
| ) |
Definition at line 290 of file format.php.


| parse_sa | ( | $ | qrec, |
| $ | question | ||
| ) |
Definition at line 283 of file format.php.


| parse_tf_yn | ( | $ | qrec, |
| $ | question | ||
| ) |
| process_matches | ( | &$ | questions | ) |
Definition at line 124 of file format.php.


| provide_import | ( | ) |
Reimplemented from qformat_default.
Definition at line 57 of file format.php.
| readquestion | ( | $ | qrec | ) |
Reimplemented from qformat_default.
Definition at line 180 of file format.php.


| readquestions | ( | $ | lines | ) |
Parses an array of lines into an array of questions, where each item is a question object as defined by readquestion().
Reimplemented from qformat_default.
Definition at line 152 of file format.php.

| unxmlise | ( | $ | xml | ) |
unxmlise reconstructs part of the xml data structure in order to identify the actual data therein
| array | $xml | section of the xml data structure |
Definition at line 67 of file format.php.


| $matching_questions = array() |
Definition at line 55 of file format.php.
| $qtypes |
array( 'tf' => TRUEFALSE, 'mc' => MULTICHOICE, 'yn' => TRUEFALSE, 'co' => SHORTANSWER, 'ma' => MATCH, 'mtf' => 99, 'nr' => NUMERICAL, 'pr' => 99, 'es' => 99, 'ca' => 99, 'ot' => 99, 'sa' => ESSAY )
Definition at line 40 of file format.php.