Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 402 and 403]

A question bank column which gathers together all the actions into a menu.

Copyright: 2019 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 113 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

edit_menu_column:: (7 methods):
  claim_menuable_columns()
  get_title()
  get_name()
  display_content()
  get_required_fields()
  get_actions()
  get_extra_classes()


Class: edit_menu_column  - X-Ref

A question bank column which gathers together all the actions into a menu.

This question bank column, if added to the question bank, will
replace all of the other columns which implement the
{@see menuable_action} interface and replace them with a single
column containing an Edit menu.

claim_menuable_columns($allcolumns)   X-Ref
Set up the list of actions that should be shown in the menu.

This takes a list of column object (the list from a question
bank view). It extracts all the ones that should go in the menu
and stores them for later use. Then it returns the remaining columns.

param: column_base[] $allcolumns a set of columns.
return: column_base[] the non-action columns from the set.

get_title()   X-Ref
No description

get_name()   X-Ref
No description

display_content($question, $rowclasses)   X-Ref
No description

get_required_fields()   X-Ref
No description

get_actions()   X-Ref
Get menuable actions.

return: menuable_action Menuable actions.

get_extra_classes()   X-Ref
No description