Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

   1  <?php
   2  
   3  namespace IMSGlobal\LTI\OAuth;
   4  
   5  /**
   6   * Class to represent an %OAuth Consumer
   7   *
   8   * @copyright  Andy Smith
   9   * @version 2008-08-04
  10   * @license https://opensource.org/licenses/MIT The MIT License
  11   */
  12  class OAuthConsumer {
  13  
  14      public $key;
  15      public $secret;
  16  
  17      function __construct($key, $secret, $callback_url=NULL) {
  18          $this->key = $key;
  19          $this->secret = $secret;
  20          $this->callback_url = $callback_url;
  21      }
  22  
  23      function __toString() {
  24          return "OAuthConsumer[key=$this->key,secret=$this->secret]";
  25      }
  26  
  27  }