(no description)
File Size: | 99 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. |