|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| from_question_attempts ($alias) | |
| where () | |
| from_where_params () | |
| usage_id_in () | |
| usage_id_in_params () | |
This class represents a restriction on the set of question_usage ids to include in a larger database query. Depending of the how you are going to restrict the list of usages, construct an appropriate subclass.
If $qubaids is an instance of this class, example usage might be
SELECT qa.id, qa.maxmark FROM $qubaids->from_question_attempts('qa') WHERE $qubaids->where() AND qa.slot = 1
Definition at line 1325 of file datalib.php.
| from_question_attempts | ( | $ | alias | ) | [abstract] |
Reimplemented in qubaid_join, and qubaid_list.
| from_where_params | ( | ) | [abstract] |
Reimplemented in qubaid_join, and qubaid_list.

| usage_id_in | ( | ) | [abstract] |
Reimplemented in qubaid_join, and qubaid_list.

| usage_id_in_params | ( | ) | [abstract] |
Reimplemented in qubaid_join, and qubaid_list.

| where | ( | ) | [abstract] |
Reimplemented in qubaid_join, and qubaid_list.