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.

Contains class for displaying a assertion.

Copyright: 2019 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 182 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

assertion_exporter:: (6 methods):
  __construct()
  map_external_data()
  define_other_properties()
  get_other_values()
  define_properties()
  define_related()


Class: assertion_exporter  - X-Ref

Class for displaying a badge competency.

__construct($data, $related = array()   X-Ref
Constructor - saves the persistent object, and the related objects.

param: mixed $data - Either an stdClass or an array of values.
param: array $related - An optional list of pre-loaded objects related to this object.

map_external_data($data, $apiversion)   X-Ref
Map from a request response data to the internal structure.

param: stdClass $data The remote data.
param: string $apiversion The backpack version used to communicate remotely.
return: stdClass

define_other_properties()   X-Ref
Return the list of additional properties.

return: array

get_other_values(renderer_base $output)   X-Ref
We map from related data passed as data to this exporter to clean exportable values.

param: renderer_base $output
return: array

define_properties()   X-Ref
Return the list of properties.

return: array

define_related()   X-Ref
Returns a list of objects that are related.

return: array