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.

(no description)

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

Defines 1 class

aggregation:: (4 methods):
  get_full_classpath()
  valid()
  get_aggregations()
  get_column_aggregations()


Class: aggregation  - X-Ref

Helper class for column aggregation related methods

get_full_classpath(string $aggregation)   X-Ref
Helper method to convert aggregation class name into fully qualified namespaced class

return: string
param: string $aggregation

valid(string $aggregationclass)   X-Ref
Validate whether given class is a valid aggregation type

return: bool
param: string $aggregationclass Fully qualified namespaced class, see {@see get_full_classpath} for converting value

get_aggregations()   X-Ref
Return list of all available/valid aggregation types

return: base[]

get_column_aggregations(int $columntype, array $exclude = [])   X-Ref
Get available aggregation types for given column type

return: string[] Aggregation types indexed by [shortname => name]
param: int $columntype
param: array $exclude List of types to exclude, e.g. ['min', 'sum']