Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

Examview question importer.

Copyright: 2005 Howard Miller
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 339 lines (12 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

qformat_examview:: (15 methods):
  provide_import()
  mime_type()
  validate_file()
  unxmlise()
  parse_matching_groups()
  parse_ma()
  process_matches()
  cleanunicode()
  readquestions()
  readquestion()
  parse_tf_yn()
  parse_mc()
  parse_co()
  parse_es()
  parse_nr()


Class: qformat_examview  - X-Ref

Examview question importer.

provide_import()   X-Ref
No description

mime_type()   X-Ref
No description

validate_file(stored_file $file)   X-Ref
Validate the given file.

For more expensive or detailed integrity checks.

param: stored_file $file the file to check
return: string the error message that occurred while validating the given file

unxmlise( $xml )   X-Ref
unxmlise reconstructs part of the xml data structure in order
to identify the actual data therein

param: array $xml section of the xml data structure
return: string data with evrything else removed

parse_matching_groups($matchinggroups)   X-Ref
No description

parse_ma($qrec, $groupname)   X-Ref
No description

process_matches(&$questions)   X-Ref
No description

cleanunicode($text)   X-Ref
No description

readquestions($lines)   X-Ref
No description

readquestion($qrec)   X-Ref
No description

parse_tf_yn($qrec, $question)   X-Ref
No description

parse_mc($qrec, $question)   X-Ref
No description

parse_co($qrec, $question)   X-Ref
No description

parse_es($qrec, $question)   X-Ref
No description

parse_nr($qrec, $question)   X-Ref
No description