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 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

Class containing helper methods for processing data requests.

Copyright: 2018 Adrian Greeve
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 183 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

metadata_registry:: (4 methods):
  get_registry_metadata()
  format_metadata()
  get_full_component_list()
  get_contrib_list()


Class: metadata_registry  - X-Ref

Class containing helper methods for processing data requests.

get_registry_metadata()   X-Ref
Returns plugin types / plugins and the user data that it stores in a format that can be sent to a template.

return: array An array with all of the plugin types / plugins and the user data they store.

format_metadata($collection, $component, $internaldata)   X-Ref
Formats the metadata for use with a template.

param: type[] $collection The collection associated with the component that we want to expand and format.
param: string $component The component that we are dealing in
param: array $internaldata The array to add the formatted metadata to.
return: array The internal data array with the formatted metadata.

get_full_component_list()   X-Ref
Return the full list of components.

return: array An array of plugin types which contain plugin data.

get_contrib_list()   X-Ref
Returns a list of contributed plugins installed on the system.

return: array A list of contributed plugins installed.