◆ __construct()
The tool_launch_service constructor.
- Parameters
-
| deployment_repository | $deploymentrepo | instance of a deployment_repository. |
| application_registration_repository | $registrationrepo | instance of an application_registration_repository. |
| resource_link_repository | $resourcelinkrepo | instance of a resource_link_repository. |
| user_repository | $userrepo | instance of a user_repository. |
| context_repository | $contextrepo | instance of a context_repository. |
◆ user_launches_tool()
| enrol_lti\local\ltiadvantage\service\tool_launch_service::user_launches_tool |
( |
\stdClass | $user, |
|
|
LtiMessageLaunch | $launch ) |
Handles the use case "A user launches the tool so they can view an external resource".
- Parameters
-
| stdClass | $user | the Moodle user record, obtained via the auth_lti authentication process. |
| LtiMessageLaunch | $launch | the launch data. |
- Return values
-
| array | array containing [int $userid, stdClass $resource] |
- Exceptions
-
| moodle_exception | if launch problems are encountered. |
The documentation for this class was generated from the following file:
- enrol/lti/classes/local/ltiadvantage/service/tool_launch_service.php