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

Class for exporting a question from an stdClass. More...

Inheritance diagram for core_question\external\question_icon_exporter:

Public Member Functions

 __construct (\stdClass $question, $related=[])
 Constructor.
 

Static Protected Member Functions

static define_properties ()
 Return the list of properties.
 
static define_related ()
 Set the moodle context as a required related object.
 

Detailed Description

Class for exporting a question from an stdClass.

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

Constructor & Destructor Documentation

◆ __construct()

core_question\external\question_icon_exporter::__construct ( \stdClass $question,
$related = [] )

Constructor.

Parameters
stdClass$question
array$relatedThe related data.

Member Function Documentation

◆ define_properties()

static core_question\external\question_icon_exporter::define_properties ( )
staticprotected

Return the list of properties.

Return values
array

◆ define_related()

static core_question\external\question_icon_exporter::define_related ( )
staticprotected

Set the moodle context as a required related object.

Return values
arrayRequired related objects.

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