Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
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. 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.
 

Detailed Description

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

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
stringHTML form fragment

Reimplemented in core_question\bank\search\tag_condition, and core_question\bank\search\category_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\tag_condition, and core_question\bank\search\category_condition.

◆ where()

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

Return an SQL fragment to be ANDed into the WHERE clause to filter which questions are shown.

Return values
stringSQL fragment. Must use named parameters.

Reimplemented from core_question\bank\search\condition.


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