Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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