Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 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.