|
| $from |
|
| $params |
|
| $usageidcolumn |
|
| $where |
|
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_quiz\question\qubaids_for_quiz::__construct |
( |
int | $quizid, |
|
|
bool | $includepreviews = true, |
|
|
bool | $onlyfinished = false ) |
Constructor.
- Parameters
-
int | $quizid | The quiz to search. |
bool | $includepreviews | Whether to include preview attempts |
bool | $onlyfinished | Whether to only include finished attempts or not |
◆ from_question_attempts()
qubaid_join::from_question_attempts |
( |
| $alias | ) |
|
|
inherited |
Get the SQL fragment to go in a FROM clause.
The SQL that needs to go in the FROM clause when trying to select records from the 'question_attempts' table based on this qubaid_condition.
- Parameters
-
- Return values
-
Reimplemented from qubaid_condition.
◆ from_where_params()
qubaid_join::from_where_params |
( |
| ) |
|
|
inherited |
◆ get_hash_code()
qubaid_condition::get_hash_code |
( |
| ) |
|
|
inherited |
- Return values
-
string | 40-character hash code that uniquely identifies the combination of properties and class name of this qubaid condition. |
◆ usage_id_in()
qubaid_join::usage_id_in |
( |
| ) |
|
|
inherited |
- Return values
-
string | SQL that can use used in a WHERE qubaid IN (...) query. This method returns the "IN (...)" part. |
Reimplemented from qubaid_condition.
◆ usage_id_in_params()
qubaid_join::usage_id_in_params |
( |
| ) |
|
|
inherited |
◆ where()
- Return values
-
string | the SQL that needs to go in the where clause. |
Reimplemented from qubaid_condition.
The documentation for this class was generated from the following file:
- mod/quiz/classes/question/qubaids_for_quiz.php