Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Class: core_backup_external  - X-Ref

Backup external functions.

get_async_backup_progress_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

get_async_backup_progress($backupids, $contextid)   X-Ref
Get asynchronous backup progress.

param: string $backupids The ids of the backup to get progress for.
param: int $contextid The context the backup relates to.
return: array $results The array of results.

get_async_backup_progress_returns()   X-Ref
Returns description of method result value

return: \core_external\external_description

get_async_backup_links_backup_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

get_async_backup_links_backup($filename, $contextid, $backupid)   X-Ref
Get the data to be used when generating the table row for an asynchronous backup,
the table row updates via ajax when backup is complete.

param: string $filename The file name of the backup file.
param: int $contextid The context the backup relates to.
param: string $backupid The backup ID to get the backup settings.

get_async_backup_links_backup_returns()   X-Ref
Returns description of method result value.

return: \core_external\external_description

get_async_backup_links_restore_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

get_async_backup_links_restore($backupid, $contextid)   X-Ref
Get the data to be used when generating the table row for an asynchronous restore,
the table row updates via ajax when restore is complete.

param: string $backupid The id of the backup record.
param: int $contextid The context the restore relates to.
return: array $results The array of results.

get_async_backup_links_restore_returns()   X-Ref
Returns description of method result value.

return: \core_external\external_description

get_copy_progress_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

get_copy_progress($copies)   X-Ref
Get the data to be used when generating the table row for a course copy,
the table row updates via ajax when copy is complete.

param: array $copies Array of ids.
return: array $results The array of results.

get_copy_progress_returns()   X-Ref
Returns description of method result value.

return: \core_external\external_description

submit_copy_form_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

submit_copy_form($jsonformdata)   X-Ref
Submit the course group form.

param: string $jsonformdata The data from the form, encoded as a json array.
return: int new group id.

submit_copy_form_returns()   X-Ref
Returns description of method result value.

return: \core_external\external_description