Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
qbank_editquestion\plugin_feature Class Reference

Class columns is the entrypoint for the columns. More...

Inheritance diagram for qbank_editquestion\plugin_feature:
core_question\local\bank\plugin_features_base

Public Member Functions

 get_bulk_actions (view $qbank)
 This method will return the array objects for the bulk actions ui.
 
 get_column_manager ()
 This method will return a column manager object, if this plugin provides one.
 
 get_navigation_node ()
 This method will return the object for the navigation node.
 
 get_question_actions (view $qbank)
 This method will return the array of objects to be rendered as a part of question bank actions.
 
 get_question_bank_controls (view $qbank, context $context, int $categoryid)
 Return "Add new question" control.
 
 get_question_columns (view $qbank)
 This method will return the array of objects to be rendered as a part of question bank columns.
 
 get_question_columns ($qbank)
 
 get_question_filters (?view $qbank=null)
 Return search conditions for the plugin.
 

Detailed Description

Class columns is the entrypoint for the columns.

Author
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

Member Function Documentation

◆ get_bulk_actions()

core_question\local\bank\plugin_features_base::get_bulk_actions ( view $qbank)
inherited

This method will return the array objects for the bulk actions ui.

Parameters
view$qbank
Return values
bulk_action_base[]

Reimplemented in qbank_bulkmove\plugin_feature, and qbank_deletequestion\plugin_feature.

◆ get_column_manager()

core_question\local\bank\plugin_features_base::get_column_manager ( )
inherited

This method will return a column manager object, if this plugin provides one.

Return values
?column_manager_base

Reimplemented in qbank_columnsortorder\plugin_feature.

◆ get_navigation_node()

core_question\local\bank\plugin_features_base::get_navigation_node ( )
inherited

This method will return the object for the navigation node.

Return values
null|navigation_node_base

Reimplemented in qbank_exportquestions\plugin_feature, qbank_importquestions\plugin_feature, and qbank_managecategories\plugin_feature.

◆ get_question_actions()

qbank_editquestion\plugin_feature::get_question_actions ( view $qbank)

This method will return the array of objects to be rendered as a part of question bank actions.

Parameters
view$qbank
Return values
question_action_base[]

Reimplemented from core_question\local\bank\plugin_features_base.

◆ get_question_bank_controls()

qbank_editquestion\plugin_feature::get_question_bank_controls ( view $qbank,
context $context,
int $categoryid )

Return "Add new question" control.

Parameters
view$qbankThe question bank view.
context$contextThe current context, for permission checks.
int$categoryidThe current question category ID.
Return values
renderable[]

Reimplemented from core_question\local\bank\plugin_features_base.

◆ get_question_columns()

core_question\local\bank\plugin_features_base::get_question_columns ( view $qbank)
inherited

This method will return the array of objects to be rendered as a part of question bank columns.

Parameters
view$qbank
Return values
array

Reimplemented in qbank_customfields\plugin_feature, qbank_usage\plugin_feature, and qbank_viewquestiontext\plugin_feature.

◆ get_question_filters()

qbank_editquestion\plugin_feature::get_question_filters ( ?view $qbank = null)

Return search conditions for the plugin.

This is used by question bank view classes to get the list of available filters to display in the filter UI.

This is also used to get the list of available filters for other purposes, for example resolving the list of questions selected by a set of filters, in which case the $qbank argument may be null {

See also
filter_condition_manager::get_condition_classes()}.
Parameters
view | null$qbankThe current question bank view the filters are being rendered for, for example the main question bank page, or the random question view.
Return values
condition[]

Reimplemented from core_question\local\bank\plugin_features_base.


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