Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
This class controls whether hidden / deleted questions are hidden in the list. More...
Public Member Functions | |
__construct ($hide=true) | |
Constructor. More... | |
display_options () | |
Display GUI for selecting criteria for this condition. More... | |
display_options_adv () | |
Print HTML to display the "Also show old questions" checkbox. | |
params () | |
Return parameters to be bound to the above WHERE clause fragment. More... | |
where () | |
Return an SQL fragment to be ANDed into the WHERE clause to filter which questions are shown. More... | |
Protected Attributes | |
bool | $hide |
Whether to include old "deleted" questions. | |
string | $where |
SQL fragment to add to the where clause. | |
This class controls whether hidden / deleted questions are hidden in the list.
core_question\bank\search\hidden_condition::__construct | ( | $hide = true | ) |
Constructor.
bool | $hide | whether to include old "deleted" questions. |
|
inherited |
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.
string | HTML form fragment |
Reimplemented in core_question\bank\search\tag_condition, and core_question\bank\search\category_condition.
|
inherited |
Return parameters to be bound to the above WHERE clause fragment.
array | parameter name => value. |
Reimplemented in core_question\bank\search\tag_condition, and core_question\bank\search\category_condition.
core_question\bank\search\hidden_condition::where | ( | ) |
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 from core_question\bank\search\condition.