Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

   1  <?php
   2  
   3  /**
   4   * This file is part of FPDI
   5   *
   6   * @package   setasign\Fpdi
   7   * @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
   8   * @license   http://opensource.org/licenses/mit-license The MIT License
   9   */
  10  
  11  // @phpstan-ignore-next-line
  12  spl_autoload_register(function ($class) {
  13      if (strpos($class, 'setasign\Fpdi\\') === 0) {
  14          $filename = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 14)) . '.php';
  15          $fullpath = __DIR__ . DIRECTORY_SEPARATOR . $filename;
  16  
  17          if (is_file($fullpath)) {
  18              /** @noinspection PhpIncludeInspection */
  19              require_once $fullpath;
  20          }
  21      }
  22  });