This class represents a restriction on the set of question_usage ids to include in a larger database query based on an explicit list of ids.
More...
|
| $columntotest = null |
|
| $params |
|
array | $qubaids |
| of ids.
|
|
This class represents a restriction on the set of question_usage ids to include in a larger database query based on an explicit list of ids.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
qubaid_list::__construct |
( |
array |
$qubaids | ) |
|
Constructor.
- Parameters
-
array | $qubaids | of question usage ids. |
◆ from_question_attempts()
qubaid_list::from_question_attempts |
( |
|
$alias | ) |
|
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_list::from_where_params |
( |
| ) |
|
◆ 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_list::usage_id_in |
( |
| ) |
|
- 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_list::usage_id_in_params |
( |
| ) |
|
◆ 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: