Course copy class.
More...
|
static | get_copies (int $userid, int $courseid=0) |
| Get the in progress course copy operations for a user. More...
|
|
Course copy class.
Handles procesing data submitted by UI copy form and sets up the course copy process.
- Copyright
- 2020 onward The Moodle Users Association https://moodleassociation.org/
- Author
- Matt Porritt mattp.nosp@m.@cat.nosp@m.alyst.nosp@m.-au..nosp@m.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_backup\copy\copy::__construct |
( |
\stdClass |
$formdata | ) |
|
Constructor for the class.
- Parameters
-
stdClass | $formdata | Data from the validated course copy form. |
◆ create_copy()
core_backup\copy\copy::create_copy |
( |
| ) |
|
Creates a course copy.
Sets up relevant controllers and adhoc task.
- Return values
-
array::$copyids | THe backup and restore controller ids. |
◆ get_copies()
static core_backup\copy\copy::get_copies |
( |
int |
$userid, |
|
|
int |
$courseid = 0 |
|
) |
| |
|
static |
Get the in progress course copy operations for a user.
- Parameters
-
int | $userid | User id to get the course copies for. |
int | $courseid | The optional source course id to get copies for. |
- Return values
-
array::$copies | Details of the inprogress copies. |
The documentation for this class was generated from the following file: