Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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: 101 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

edit_menu_column:: (5 methods):
  claim_menuable_columns()
  get_title()
  get_name()
  display_content()
  get_required_fields()


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
{@link 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