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.

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