Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

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: 181 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: array $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.