The course_content_item_exporter class.
More...
The course_content_item_exporter class.
- Copyright
- 2020 Jake Dallimore jrhda.nosp@m.llim.nosp@m.ore@g.nosp@m.mail.nosp@m..com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_course\local\exporters\course_content_item_exporter::__construct |
( |
content_item | $contentitem, |
|
|
array | $related = [] ) |
The course_content_item_exporter constructor.
- Parameters
-
content_item | $contentitem | the content item to export. |
array | $related | the array of related objects used during export. |
◆ define_other_properties()
static core_course\local\exporters\course_content_item_exporter::define_other_properties |
( |
| ) |
|
|
staticprotected |
Definition of all properties which are either calculated or originate in a related domain object.
- Return values
-
array | The array of property values, indexed by name. |
◆ define_properties()
static core_course\local\exporters\course_content_item_exporter::define_properties |
( |
| ) |
|
|
staticprotected |
◆ define_related()
static core_course\local\exporters\course_content_item_exporter::define_related |
( |
| ) |
|
|
staticprotected |
Define the list of related objects, used by this exporter.
- Return values
-
array | the list of related objects. |
◆ get_other_values()
core_course\local\exporters\course_content_item_exporter::get_other_values |
( |
\renderer_base | $output | ) |
|
|
protected |
Get ALL properties for the content_item DTO being exported.
These properties are a mix of:
- readonly properties of the primary object (content_item) being exported.
- calculated values
- properties originating from the related domain objects.
Normally, those properties defined in get_properties() are added to the export automatically as part of the superclass code, provided they are public properties on the export target. In this case, the export target is content_item, which doesn't provide public access to its properties, so those are fetched via their respective getters here.
- Parameters
-
- Return values
-
array | The array of property values, indexed by name. |
The documentation for this class was generated from the following file:
- course/classes/local/exporters/course_content_item_exporter.php