Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
The import_strategy_link class. More...
Public Member Functions | |
get_handlers (array $registrydata, remote_resource $resource) | |
Get an array of import_handler_info objects representing modules supporting import of the resource. | |
import (remote_resource $resource, stdClass $user, stdClass $course, int $section) | |
Import the remote resource according to the rules of this strategy. | |
The import_strategy_link class.
The import_strategy_link objects contains the setup steps needed to prepare a resource for import as a URL into Moodle.
tool_moodlenet\local\import_strategy_link::get_handlers | ( | array | $registrydata, |
remote_resource | $resource ) |
Get an array of import_handler_info objects representing modules supporting import of the resource.
array | $registrydata | the fully populated registry. |
remote_resource | $resource | the remote resource. |
import_handler_info[] | the array of import_handler_info objects. |
Implements tool_moodlenet\local\import_strategy.
tool_moodlenet\local\import_strategy_link::import | ( | remote_resource | $resource, |
stdClass | $user, | ||
stdClass | $course, | ||
int | $section ) |
Import the remote resource according to the rules of this strategy.
remote_resource | $resource | the resource to import. |
stdClass | $user | the user to import on behalf of. |
stdClass | $course | the course into which the remote_resource is being imported. |
int | $section | the section into which the remote_resource is being imported. |
stdClass | the module data. |
Implements tool_moodlenet\local\import_strategy.