A {.
More...
|
| $from |
|
| $params |
|
| $usageidcolumn |
|
| $where |
|
A {.
- See also
- qubaid_condition} representing all the attempts by one user at a given quiz.
- Copyright
- 2015 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_quiz\question\qubaids_for_users_attempts::__construct |
( |
| $quizid, |
|
|
| $userid, |
|
|
| $status = 'finished', |
|
|
| $includepreviews = false ) |
Constructor.
This takes the same arguments as quiz_get_user_attempts().
- Parameters
-
int | $quizid | the quiz id. |
int | $userid | the userid. |
string | $status | 'all', 'finished' or 'unfinished' to control |
bool | $includepreviews | defaults to false. |
Reimplemented from qubaid_join.
◆ 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: