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 |
plugin_features_base:: (7 methods):
get_question_columns()
get_question_actions()
get_navigation_node()
get_bulk_actions()
get_column_manager()
get_question_bank_controls()
get_question_filters()
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[] |