Moodle  2.2.1
http://www.collinsharper.com
question_usage_observer Interface Reference
Inheritance diagram for question_usage_observer:

Public Member Functions

 notify_modified ()
 notify_attempt_modified (question_attempt $qa)
 notify_attempt_added (question_attempt $qa)
 notify_step_added (question_attempt_step $step, question_attempt $qa, $seq)
 notify_step_modified (question_attempt_step $step, question_attempt $qa, $seq)
 notify_step_deleted (question_attempt_step $step, question_attempt $qa)

Detailed Description

Interface for things that want to be notified of signficant changes to a question_usage_by_activity.

A question behaviour controls the flow of actions a student can take as they work through a question, and later, as a teacher manually grades it.

Definition at line 805 of file questionusage.php.


Member Function Documentation

Called when a new question attempt is added to this usage.

Parameters:
question_attempt$qathe newly added question attempt.

Implemented in question_engine_unit_of_work, and question_usage_null_observer.

Called when the fields of a question attempt in this usage are modified.

Parameters:
question_attempt$qathe newly added question attempt.

Implemented in question_engine_unit_of_work, and question_usage_null_observer.

Called when a field of the question_usage_by_activity is changed.

Implemented in question_engine_unit_of_work, and 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.

Parameters:
question_attempt_step$stepthe new step.
question_attempt$qathe usage it is being added to.
int$seqthe sequence number of the new step.

Implemented in question_engine_unit_of_work, and question_usage_null_observer.

Called when a new step is updated in a question attempt in this usage.

Parameters:
question_attempt_step$stepthe step to delete.
question_attempt$qathe usage it is being added to.

Implemented in question_engine_unit_of_work, and question_usage_null_observer.

Called when a new step is updated in a question attempt in this usage.

Parameters:
question_attempt_step$stepthe step that was updated.
question_attempt$qathe usage it is being added to.
int$seqthe sequence number of the new step.

Implemented in question_engine_unit_of_work, and question_usage_null_observer.


The documentation for this interface was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations