Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

Defines 1 class

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!

return: array (of objects) questions objects.
param: array $text array of lines from the input file.

process_common($questiondata)   X-Ref
Do question import processing common to every qtype.

return: object initialized question object.
param: array $questiondata the xml tree related to the current question

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