Blackboard V5 and V6 question importer.
Copyright: | 2003 Scott Elliott |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 492 lines (21 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
qformat_blackboard_six_pool:: (9 methods):
readquestions()
process_common()
process_category()
process_essay()
process_tf()
process_mc()
process_ma()
process_fib()
process_matching()
Class: qformat_blackboard_six_pool - X-Ref
Blackboard pool question importer class.readquestions($text) X-Ref |
Parse the xml document into an array of questions This *could* burn memory - but it won't happen that much so fingers crossed! param: array $text array of lines from the input file. return: array (of objects) questions objects. |
process_common($questiondata) X-Ref |
Do question import processing common to every qtype. param: array $questiondata the xml tree related to the current question return: object initialized question object. |
process_category($xml, &$questions) X-Ref |
Add a category question entry based on the pool file title param: array $xml the xml tree param: array $questions the questions already parsed |
process_essay($xml, &$questions) X-Ref |
Process Essay Questions param: array $xml the xml tree param: array $questions the questions already parsed |
process_tf($xml, &$questions) X-Ref |
Process True / False Questions param: array $xml the xml tree param: array $questions the questions already parsed |
process_mc($xml, &$questions) X-Ref |
Process Multiple Choice Questions with single answer param: array $xml the xml tree param: array $questions the questions already parsed |
process_ma($xml, &$questions) X-Ref |
Process Multiple Choice Questions With Multiple Answers param: array $xml the xml tree param: array $questions the questions already parsed |
process_fib($xml, &$questions) X-Ref |
Process Fill in the Blank Questions param: array $xml the xml tree param: array $questions the questions already parsed |
process_matching($xml, &$questions) X-Ref |
Process Matching Questions param: array $xml the xml tree param: array $questions the questions already parsed |