Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

Base class class for qbank plugins. Every qbank plugin must extent this class.

Author: Safat Shahin <safatshahin@catalyst-au.net>
Copyright: 2021 Catalyst IT Australia Pty Ltd
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: plugin_features_base  - X-Ref

Class plugin_features_base is the base class for qbank plugins.

get_question_columns(view $qbank)   X-Ref
This method will return the array of objects to be rendered as a part of question bank columns.

param: view $qbank
return: array

get_question_actions(view $qbank)   X-Ref
This method will return the array of objects to be rendered as a part of question bank actions.

param: view $qbank
return: question_action_base[]

get_navigation_node()   X-Ref
This method will return the object for the navigation node.

return: null|navigation_node_base

get_bulk_actions()   X-Ref
This method will return the array objects for the bulk actions ui.

return: bulk_action_base[]

get_column_manager()   X-Ref
This method will return a column manager object, if this plugin provides one.

return: ?column_manager_base

get_question_bank_controls(view $qbank, context $context, int $categoryid)   X-Ref
This method will return an array of renderable objects, for adding additional controls to the question bank screen.

The array returned can include a numeric index for each object, to indicate the position in which it should be displayed
relative to other controls. If two plugins return controls with the same position, they will be displayed after one another,
based on the alphabetical order of the plugin component names.

param: view $qbank The question bank view.
param: context $context The current context, for permission checks.
param: int $categoryid The current question category ID.
return: \renderable[]

get_question_filters(view $qbank = null)   X-Ref
Return search conditions for the plugin.

param: view|null $qbank
return: condition[]