Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.