Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Contains the course_content_items_exporter class.

Copyright: 2020 Jake Dallimore <jrhdallimore@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 108 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

course_content_items_exporter:: (4 methods):
  __construct()
  define_properties()
  get_other_values()
  define_related()


Class: course_content_items_exporter  - X-Ref

The course_content_items_exporter class.

__construct(array $contentitems, array $related)   X-Ref
The course_content_items_exporter constructor.

param: array $contentitems the array of \core_course\local\entity\content_item objects to export.
param: array $related any related objects, see define_related for what's expected.

define_properties()   X-Ref
Return the properties defining this export.

return: array the array of properties.

get_other_values(\renderer_base $output)   X-Ref
Generate and return the data for this export.

param: \renderer_base $output
return: array the array of course content_items

define_related()   X-Ref
Define the list of related objects, used by this exporter.

return: array the list of related objects.