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.

(no description)

File Size: 73 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

column_manager_base:: (4 methods):
  get_sorted_columns()
  set_columns_visibility()
  get_column_actions()
  get_column_width()


Class: column_manager_base  - X-Ref

Default column manager class

This class defines stub methods that can be overridden by a plugin defining its own column manager.

get_sorted_columns(array $unsortedcolumns)   X-Ref
Sort the list of columns

Sort the provided list of columns into the order implemented in this column manager.

param: array $unsortedcolumns Unordered array of columns
return: array Columns in the desired order.

set_columns_visibility(array $columns)   X-Ref
Given an array of columns, set the isvisible attribute.

This base class leave all columns visible.

param: column_base[] $columns
return: array

get_column_actions(view $qbank)   X-Ref
Return a list of actions to display in an action menu for each column.

param: view $qbank Question bank view.
return: column_action_base[] A list of column actions.

get_column_width(column_base $column)   X-Ref
Given a column, return a value for its width CSS property.

param: column_base $column
return: string CSS width property value.