Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Null implmentation of the question_usage_watcher interface. More...
Public Member Functions | |
notify_attempt_added (question_attempt $qa) | |
Called when a new question attempt is added to this usage. | |
notify_attempt_modified (question_attempt $qa) | |
Called when the fields of a question attempt in this usage are modified. | |
notify_attempt_moved (question_attempt $qa, $oldslot) | |
Called when a question_attempt has been moved to a new slot. | |
notify_metadata_added (question_attempt $qa, $name) | |
Called when a new metadata variable is set on a question attempt in this usage. | |
notify_metadata_modified (question_attempt $qa, $name) | |
Called when a metadata variable on a question attempt in this usage is updated. | |
notify_modified () | |
Called when a field of the question_usage_by_activity is changed. | |
notify_step_added (question_attempt_step $step, question_attempt $qa, $seq) | |
Called when a new step is added to a question attempt in this usage. | |
notify_step_deleted (question_attempt_step $step, question_attempt $qa) | |
Called when a new step is updated in a question attempt in this usage. | |
notify_step_modified (question_attempt_step $step, question_attempt $qa, $seq) | |
Called when a new step is updated in a question attempt in this usage. | |
Null implmentation of the question_usage_watcher interface.
Does nothing.
question_usage_null_observer::notify_attempt_added | ( | question_attempt | $qa | ) |
Called when a new question attempt is added to this usage.
question_attempt | $qa | the newly added question attempt. |
Implements question_usage_observer.
question_usage_null_observer::notify_attempt_modified | ( | question_attempt | $qa | ) |
Called when the fields of a question attempt in this usage are modified.
question_attempt | $qa | the newly added question attempt. |
Implements question_usage_observer.
question_usage_null_observer::notify_attempt_moved | ( | question_attempt | $qa, |
$oldslot ) |
Called when a question_attempt has been moved to a new slot.
question_attempt | $qa | The question attempt that was moved. |
int | $oldslot | The previous slot number of that attempt. |
Implements question_usage_observer.
question_usage_null_observer::notify_metadata_added | ( | question_attempt | $qa, |
$name ) |
Called when a new metadata variable is set on a question attempt in this usage.
question_attempt | $qa | the question attempt the metadata is being added to. |
int | $name | the name of the metadata variable added. |
Implements question_usage_observer.
question_usage_null_observer::notify_metadata_modified | ( | question_attempt | $qa, |
$name ) |
Called when a metadata variable on a question attempt in this usage is updated.
question_attempt | $qa | the question attempt where the metadata is being modified. |
int | $name | the name of the metadata variable modified. |
Implements question_usage_observer.
question_usage_null_observer::notify_modified | ( | ) |
Called when a field of the question_usage_by_activity is changed.
Implements question_usage_observer.
question_usage_null_observer::notify_step_added | ( | question_attempt_step | $step, |
question_attempt | $qa, | ||
$seq ) |
Called when a new step is added to a question attempt in this usage.
question_attempt_step | $step | the new step. |
question_attempt | $qa | the usage it is being added to. |
int | $seq | the sequence number of the new step. |
Implements question_usage_observer.
question_usage_null_observer::notify_step_deleted | ( | question_attempt_step | $step, |
question_attempt | $qa ) |
Called when a new step is updated in a question attempt in this usage.
question_attempt_step | $step | the step to delete. |
question_attempt | $qa | the usage it is being added to. |
Implements question_usage_observer.
question_usage_null_observer::notify_step_modified | ( | question_attempt_step | $step, |
question_attempt | $qa, | ||
$seq ) |
Called when a new step is updated in a question attempt in this usage.
question_attempt_step | $step | the step that was updated. |
question_attempt | $qa | the usage it is being added to. |
int | $seq | the sequence number of the new step. |
Implements question_usage_observer.