Class for exporting a question summary from an stdClass.
More...
|
| __construct (\stdClass $question, $related=[]) |
| Constructor.
|
|
|
stdClass | $question |
| $question
|
|
Class for exporting a question summary from an stdClass.
- Copyright
- 2018 Ryan Wyllie ryan@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_question\external\question_summary_exporter::__construct |
( |
\stdClass | $question, |
|
|
| $related = [] ) |
Constructor.
- Parameters
-
stdClass | $question | |
array | $related | The related data. |
◆ define_other_properties()
static core_question\external\question_summary_exporter::define_other_properties |
( |
| ) |
|
|
staticprotected |
Define the list of calculated properties.
- Return values
-
array | The list of properties. |
◆ define_properties()
static core_question\external\question_summary_exporter::define_properties |
( |
| ) |
|
|
static |
The list of static properties returned.
- Return values
-
◆ define_related()
static core_question\external\question_summary_exporter::define_related |
( |
| ) |
|
|
staticprotected |
Set the moodle context as a required related object.
- Return values
-
array | Required related objects. |
◆ get_mandatory_properties()
static core_question\external\question_summary_exporter::get_mandatory_properties |
( |
| ) |
|
|
static |
The list of mandatory properties required on the question object to export.
- Return values
-
string[] | List of properties. |
◆ get_other_values()
core_question\external\question_summary_exporter::get_other_values |
( |
\renderer_base | $output | ) |
|
|
protected |
Calculate the values for the properties defined in the define_other_properties function.
- Parameters
-
- Return values
-
array | The list of properties. |
The documentation for this class was generated from the following file:
- question/classes/external/question_summary_exporter.php