Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

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

Defines 1 class

custom_field_column:: (6 methods):
  __construct()
  get_name()
  get_column_name()
  get_title()
  display_content()
  get_extra_classes()


Class: custom_field_column  - X-Ref

A column type for the name of the question creator.

__construct(\core_question\local\bank\view $qbank, \core_customfield\field_controller $field)   X-Ref
Constructor.

param: view $qbank the question bank view we are helping to render.
param: \core_customfield\field_controller $field The custom field this column is displaying.

get_name()   X-Ref
Get the internal name for this column. Used as a CSS class name,
and to store information about the current sort. Must match PARAM_ALPHA.

return: string column name.

get_column_name()   X-Ref
Get the name of this column. This must be unique.
When using the inherited class to make many columns from one parent,
ensure each instance returns a unique value.

return: string The unique name;

get_title()   X-Ref
Title for this column. Not used if is_sortable returns an array.

return: string

display_content($question, $rowclasses)   X-Ref
Output the contents of this column.

param: object $question the row from the $question table, augmented with extra information.
param: string $rowclasses CSS class names that should be applied to this row of output.

get_extra_classes()   X-Ref
No description