Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

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

Defines 1 class

column:: (5 methods):
  define_properties()
  validate_reportid()
  get_report()
  get_max_columnorder()
  get_formatted_heading()


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

return: bool|lang_string
param: int $reportid

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

return: report

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

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

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

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