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

(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