Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
This class controls whether hidden / deleted questions are hidden in the list. More...
Public Member Functions | |
__construct ($hide=true) | |
Constructor. | |
display_options () | |
Display GUI for selecting criteria for this condition. | |
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. | |
where () | |
SQL fragment to add to the where clause. | |
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.
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\hidden_condition::display_options_adv | ( | ) |
Print HTML to display the "Also show old questions" checkbox.
Reimplemented from core_question\bank\search\condition.
|
inherited |
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.
core_question\bank\search\hidden_condition::where | ( | ) |
SQL fragment to add to the where clause.
string |
Reimplemented from core_question\bank\search\condition.