Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_badges\external\assertion_exporter Class Reference

Class for displaying a badge competency. More...

Inheritance diagram for core_badges\external\assertion_exporter:

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

static define_other_properties ()
 Return the list of additional properties.
 
static define_properties ()
 Return the list of properties.
 
static define_related ()
 Returns a list of objects that are related.
 

Detailed Description

Class for displaying a badge competency.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_badges\external\assertion_exporter::__construct ( $data,
$related = array() )

Constructor - saves the persistent object, and the related objects.

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

Member Function Documentation

◆ define_other_properties()

static core_badges\external\assertion_exporter::define_other_properties ( )
staticprotected

Return the list of additional properties.

Return values
array

◆ define_properties()

static core_badges\external\assertion_exporter::define_properties ( )
staticprotected

Return the list of properties.

Return values
array

◆ define_related()

static core_badges\external\assertion_exporter::define_related ( )
staticprotected

Returns a list of objects that are related.

Return values
array

◆ get_other_values()

core_badges\external\assertion_exporter::get_other_values ( renderer_base $output)
protected

We map from related data passed as data to this exporter to clean exportable values.

Parameters
renderer_base$output
Return values
array

◆ map_external_data()

static core_badges\external\assertion_exporter::map_external_data ( $data,
$apiversion )
static

Map from a request response data to the internal structure.

Parameters
stdClass$dataThe remote data.
string$apiversionThe backpack version used to communicate remotely.
Return values
stdClass

The documentation for this class was generated from the following file: