Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
enrol_lti\local\ltiadvantage\entity\migration_claim Class Reference

Public Member Functions

 __construct (array $claim, string $deploymentid, string $platform, string $clientid, string $exp, string $nonce, legacy_consumer_repository $legacyconsumerrepo)
 The migration_claim constructor.
 
 get_consumer_key ()
 Return the consumer key stored in the claim.
 
 get_context_id ()
 Return the LTI 1.1 context id stored in the claim.
 
 get_resource_link_id ()
 Return the LTI 1.1 resource link id stored in the claim.
 
 get_tool_consumer_instance_guid ()
 Return the LTI 1.1 tool consumer instance GUID stored in the claim.
 
 get_user_id ()
 Return the LTI 1.1 user id stored in the claim.
 

Constructor & Destructor Documentation

◆ __construct()

enrol_lti\local\ltiadvantage\entity\migration_claim::__construct ( array $claim,
string $deploymentid,
string $platform,
string $clientid,
string $exp,
string $nonce,
legacy_consumer_repository $legacyconsumerrepo )

The migration_claim constructor.

Parameters
array$claimthe array of claim data, as received in a resource link launch.
string$deploymentidthe deployment id included in the launch.
string$platformthe platform included in the launch.
string$clientidthe client id included in the launch.
string$expthe exp included in the launch.
string$noncethe nonce included in the launch.
legacy_consumer_repository$legacyconsumerrepoa legacy consumer repository instance.
Exceptions
coding_exceptionif the claim data is invalid.

Member Function Documentation

◆ get_consumer_key()

enrol_lti\local\ltiadvantage\entity\migration_claim::get_consumer_key ( )

Return the consumer key stored in the claim.

Return values
stringthe consumer key included in the claim.

◆ get_context_id()

enrol_lti\local\ltiadvantage\entity\migration_claim::get_context_id ( )

Return the LTI 1.1 context id stored in the claim.

Return values
string|nullthe context id, or null if not provided in the claim.

◆ get_resource_link_id()

enrol_lti\local\ltiadvantage\entity\migration_claim::get_resource_link_id ( )

Return the LTI 1.1 resource link id stored in the claim.

Return values
string|nullthe resource link id, or null if not provided in the claim.

◆ get_tool_consumer_instance_guid()

enrol_lti\local\ltiadvantage\entity\migration_claim::get_tool_consumer_instance_guid ( )

Return the LTI 1.1 tool consumer instance GUID stored in the claim.

Return values
string|nullthe tool consumer instance GUID, or null if not provided in the claim.

◆ get_user_id()

enrol_lti\local\ltiadvantage\entity\migration_claim::get_user_id ( )

Return the LTI 1.1 user id stored in the claim.

Return values
string|nullthe user id, or null if not provided in the claim.

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