Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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