Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
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.