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.

Differences Between: [Versions 400 and 402] [Versions 400 and 403]

   1  <?php
   2  
   3  namespace Packback\Lti1p3\Interfaces;
   4  
   5  interface ILtiServiceConnector
   6  {
   7      public function getAccessToken(ILtiRegistration $registration, array $scopes);
   8  
   9      public function makeRequest(IServiceRequest $request);
  10  
  11      public function getResponseBody(IHttpResponse $response): ?array;
  12  
  13      public function makeServiceRequest(
  14          ILtiRegistration $registration,
  15          array $scopes,
  16          IServiceRequest $request,
  17          bool $shouldRetry = true
  18      ): array;
  19  
  20      public function getAll(
  21          ILtiRegistration $registration,
  22          array $scopes,
  23          IServiceRequest $request,
  24          string $key
  25      ): array;
  26  
  27      public function setDebuggingMode(bool $enable): void;
  28  }