Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 121 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

issuer_database:: (3 methods):
  __construct()
  findRegistrationByIssuer()
  findDeployment()


Class: issuer_database  - X-Ref

The issuer_database class, providing a read-only store of issuer details.

__construct(application_registration_repository $appregrepo,deployment_repository $deploymentrepo)   X-Ref
The issuer_database constructor.

param: application_registration_repository $appregrepo an application registration repository instance.
param: deployment_repository $deploymentrepo a deployment repository instance.

findRegistrationByIssuer($iss, $clientId = null)   X-Ref
Find and return an LTI registration based on its unique {issuer, client_id} tuple.

return: LtiRegistration|null The registration object, or null if not found.
param: string $iss the issuer id.
param: string $clientId the client_id of the registration.

findDeployment($iss, $deploymentId, $clientId = null)   X-Ref
Returns an LTI deployment based on the {issuer, client_id} tuple and a deployment id string.

return: LtiDeployment|null The deployment object or null if not found.
param: string $iss the issuer id.
param: string $deploymentId the deployment id.
param: string $clientId the client_id of the registration.