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.

(no description)

File Size: 99 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

course_partial_packager:: (4 methods):
  __construct()
  package()
  remove_unselected_activities()
  get_all_activity_tasks()


Class: course_partial_packager  - X-Ref

Packager to prepare appropriate backup of a number of activities in a course to share to MoodleNet.

__construct(stdClass $course,array $cmids,int $userid,)   X-Ref
Constructor for course partial packager.

param: stdClass $course The course to package
param: array $cmids List of course module id of selected activities.
param: int $userid The ID of the user performing the packaging

package(backup_controller $controller)   X-Ref
Package the resource identified by resource id into a new stored_file.

param: backup_controller $controller The backup controller.
return: stored_file

remove_unselected_activities(backup_controller $controller)   X-Ref
Remove unselected activities in the course backup.

param: backup_controller $controller The backup controller.

get_all_activity_tasks(backup_controller $controller)   X-Ref
Get all the activity tasks in the controller.

param: backup_controller $controller The backup controller.
return: backup_activity_task[] Array of activity tasks.