Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
Packback\Lti1p3\Interfaces\IMigrationDatabase Interface Reference
Inheritance diagram for Packback\Lti1p3\Interfaces\IMigrationDatabase:
Packback\Lti1p3\Interfaces\IDatabase

Public Member Functions

 findDeployment (string $iss, string $deploymentId, ?string $clientId=null)
 
 findLti1p1Keys (LtiMessageLaunch $launch)
 Using the LtiMessageLaunch return an array of matching LTI 1.1 keys.
 
 findRegistrationByIssuer (string $iss, ?string $clientId=null)
 
 migrateFromLti1p1 (LtiMessageLaunch $launch)
 This method should create a 1.3 deployment in your DB based on the LtiMessageLaunch.
 
 shouldMigrate (LtiMessageLaunch $launch)
 Given an LtiMessageLaunch, return true if this tool should migrate from 1.1 to 1.3.
 

Member Function Documentation

◆ findDeployment()

Packback\Lti1p3\Interfaces\IDatabase::findDeployment ( string $iss,
string $deploymentId,
?string $clientId = null )
inherited

◆ findLti1p1Keys()

Packback\Lti1p3\Interfaces\IMigrationDatabase::findLti1p1Keys ( LtiMessageLaunch $launch)

Using the LtiMessageLaunch return an array of matching LTI 1.1 keys.

Return values
array<\Packback\Lti1p3\Lti1p1Key>

◆ findRegistrationByIssuer()

Packback\Lti1p3\Interfaces\IDatabase::findRegistrationByIssuer ( string $iss,
?string $clientId = null )
inherited

◆ migrateFromLti1p1()

Packback\Lti1p3\Interfaces\IMigrationDatabase::migrateFromLti1p1 ( LtiMessageLaunch $launch)

This method should create a 1.3 deployment in your DB based on the LtiMessageLaunch.

Previous to this, we validated the oauth_consumer_key_sign to ensure this migration can safely occur.


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