Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 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  }