Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
tool_moodlenet\local\import_strategy_link Class Reference

The import_strategy_link class. More...

Inheritance diagram for tool_moodlenet\local\import_strategy_link:
tool_moodlenet\local\import_strategy

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.
 

Detailed Description

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.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_handlers()

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.

Parameters
array$registrydatathe fully populated registry.
remote_resource$resourcethe remote resource.
Return values
import_handler_info[]the array of import_handler_info objects.

Implements tool_moodlenet\local\import_strategy.

◆ import()

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.

Parameters
remote_resource$resourcethe resource to import.
stdClass$userthe user to import on behalf of.
stdClass$coursethe course into which the remote_resource is being imported.
int$sectionthe section into which the remote_resource is being imported.
Return values
stdClassthe module data.

Implements tool_moodlenet\local\import_strategy.


The documentation for this class was generated from the following file: