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.

Code that deals with logging stuff during the question engine upgrade.

Copyright: 2010 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 95 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

question_engine_assumption_logger:: (4 methods):
  __construct()
  set_current_attempt_id()
  log_assumption()
  __destruct()

dummy_question_engine_assumption_logger:: (3 methods):
  __construct()
  log_assumption()
  __destruct()


Class: question_engine_assumption_logger  - X-Ref

This class serves to record all the assumptions that the code had to make
during the question engine database database upgrade, to facilitate reviewing
them.

__construct()   X-Ref
No description

set_current_attempt_id($id)   X-Ref
No description

log_assumption($description, $quizattemptid = null)   X-Ref
No description

__destruct()   X-Ref
No description

Class: dummy_question_engine_assumption_logger  - X-Ref

Subclass of question_engine_assumption_logger that does nothing, for testing.

__construct()   X-Ref
No description

log_assumption($description, $quizattemptid = null)   X-Ref
No description

__destruct()   X-Ref
No description