Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_question\bank\search\hidden_condition Class Reference

This class controls whether hidden / deleted questions are hidden in the list. More...

Inheritance diagram for core_question\bank\search\hidden_condition:
core_question\bank\search\condition

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.
 

Detailed Description

This class controls whether hidden / deleted questions are hidden in the list.

Author
2021 Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_question\bank\search\hidden_condition::__construct ( $hide = true)

Constructor.

Parameters
bool$hidewhether to include old "deleted" questions.

Member Function Documentation

◆ display_options()

core_question\bank\search\condition::display_options ( )
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.

Return values
bool|stringHTML 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.

◆ display_options_adv()

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.

◆ params()

core_question\bank\search\condition::params ( )
inherited

Return parameters to be bound to the above WHERE clause fragment.

Return values
arrayparameter name => value.

Reimplemented in core_question\bank\search\category_condition, and core_question\bank\search\tag_condition.

◆ where()

core_question\bank\search\hidden_condition::where ( )

SQL fragment to add to the where clause.

Return values
string

Reimplemented from core_question\bank\search\condition.


The documentation for this class was generated from the following file: