Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
An abstract class for filtering/searching questions. More...
Public Member Functions | |
display_options () | |
Display GUI for selecting criteria for this condition. | |
display_options_adv () | |
Display GUI for selecting criteria for this condition. | |
params () | |
Return parameters to be bound to the above WHERE clause fragment. | |
where () | |
Return an SQL fragment to be ANDed into the WHERE clause to filter which questions are shown. | |
An abstract class for filtering/searching questions.
See also {
core_question\bank\search\condition::display_options | ( | ) |
Display GUI for selecting criteria for this condition.
Displayed always, whether Show More is open or not.
Compare display_options_adv(), which displays when Show More is open.
bool|string | HTML form fragment |
Reimplemented in core_question\bank\search\category_condition, core_question\bank\search\tag_condition, and mod_quiz\question\bank\filter\custom_category_condition.
core_question\bank\search\condition::display_options_adv | ( | ) |
Display GUI for selecting criteria for this condition.
Displayed when Show More is open.
Compare display_options(), which displays always, whether Show More is open or not.
bool|string | HTML form fragment |
Reimplemented in core_question\bank\search\category_condition, and core_question\bank\search\hidden_condition.
core_question\bank\search\condition::params | ( | ) |
Return parameters to be bound to the above WHERE clause fragment.
array | parameter name => value. |
Reimplemented in core_question\bank\search\category_condition, and core_question\bank\search\tag_condition.
|
abstract |
Return an SQL fragment to be ANDed into the WHERE clause to filter which questions are shown.
string | SQL fragment. Must use named parameters. |
Reimplemented in core_question\bank\search\category_condition, core_question\bank\search\hidden_condition, and core_question\bank\search\tag_condition.