Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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.

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

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

return: array the list of related objects.