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 400 and 402]

(no description)

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

Defines 1 class


Class: column  - X-Ref

Persistent class to represent a report column

define_properties()   X-Ref
Return the definition of the properties of this model.

return: array

validate_reportid(int $reportid)   X-Ref
Validate reportid property

param: int $reportid
return: bool|lang_string

get_report()   X-Ref
Return the report this column belongs to

return: report

after_create()   X-Ref
Ensure report source is notified of new column


after_update($result)   X-Ref
Ensure report source is notified of updated column

param: bool $result

after_delete($result)   X-Ref
Ensure report source is notified of deleted column

param: bool $result

get_max_columnorder(int $reportid, string $columnname)   X-Ref
Helper method to return the current maximum column order value for a report

param: int $reportid
param: string $columnname
return: int

get_formatted_heading(?context $context = null)   X-Ref
Return formatted column name

param: context|null $context If the context of the report is already known, it should be passed here
return: string