Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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.