Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Public Member Functions | |
__construct (int $quizid, int $userid, bool $includepreviews=true, bool $onlyfinished=false) | |
Constructor. | |
from_question_attempts ($alias) | |
Get the SQL fragment to go in a FROM clause. | |
from_where_params () | |
get_hash_code () | |
usage_id_in () | |
usage_id_in_params () | |
where () | |
Public Attributes | |
$from | |
$params | |
$usageidcolumn | |
$where | |
mod_quiz\question\qubaids_for_quiz_user::__construct | ( | int | $quizid, |
int | $userid, | ||
bool | $includepreviews = true, | ||
bool | $onlyfinished = false ) |
Constructor.
int | $quizid | The quiz to search. |
int | $userid | The user to filter on |
bool | $includepreviews | Whether to include preview attempts |
bool | $onlyfinished | Whether to only include finished attempts or not |
|
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.
string | $alias |
string | SQL fragment. |
Reimplemented from qubaid_condition.
|
inherited |
array | the params needed by a query that uses from_question_attempts() and where(). |
Reimplemented from qubaid_condition.
|
inherited |
string | 40-character hash code that uniquely identifies the combination of properties and class name of this qubaid condition. |
|
inherited |
string | SQL that can use used in a WHERE qubaid IN (...) query. This method returns the "IN (...)" part. |
Reimplemented from qubaid_condition.
|
inherited |
array | the params needed by a query that uses usage_id_in(). |
Reimplemented from qubaid_condition.
|
inherited |
string | the SQL that needs to go in the where clause. |
Reimplemented from qubaid_condition.