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.
   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * This file contains the forms used by the restore stages
  19   *
  20   * @package   core_backup
  21   * @copyright 2010 Sam Hemelryk
  22   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  /**
  26   * An abstract moodleform class specially designed for the restore forms.
  27   *
  28   * @abstract Marked abstract here because some idiot forgot to mark it abstract in code!
  29   * @package   core_backup
  30   * @copyright 2010 Sam Hemelryk
  31   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  32   */
  33  class restore_moodleform extends base_moodleform {
  34      /**
  35       * Constructor.
  36       *
  37       * Overridden just for the purpose of typehinting the first arg.
  38       *
  39       * @param restore_ui_stage $uistage
  40       * @param null $action
  41       * @param null $customdata
  42       * @param string $method
  43       * @param string $target
  44       * @param null $attributes
  45       * @param bool $editable
  46       */
  47      public function __construct(restore_ui_stage $uistage, $action = null, $customdata = null, $method = 'post',
  48                                  $target = '', $attributes = null, $editable = true) {
  49          parent::__construct($uistage, $action, $customdata, $method, $target, $attributes, $editable);
  50      }
  51  }
  52  
  53  /**
  54   * Restore settings form.
  55   *
  56   * @package   core_backup
  57   * @copyright 2010 Sam Hemelryk
  58   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  59   */
  60  class restore_settings_form extends restore_moodleform {}
  61  
  62  /**
  63   * Restore schema review form.
  64   *
  65   * @package   core_backup
  66   * @copyright 2010 Sam Hemelryk
  67   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  68   */
  69  class restore_schema_form extends restore_moodleform {}
  70  
  71  /**
  72   * Restore complete process review form.
  73   *
  74   * @package   core_backup
  75   * @copyright 2010 Sam Hemelryk
  76   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  77   */
  78  class restore_review_form extends restore_moodleform {};