MDL-35603 - Backup - Course import selector notice
[moodle.git] / backup / util / settings / root / root_backup_setting.class.php
CommitLineData
69dd0c8c
EL
1<?php
2
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
18/**
85aad2ef
DM
19 * Defines root_backup_setting class
20 *
21 * @package core_backup
22 * @category backup
23 * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
69dd0c8c
EL
25 */
26
85aad2ef
DM
27defined('MOODLE_INTERNAL') || die();
28
69dd0c8c
EL
29/**
30 * Abstract class containing all the common stuff for root backup settings
69dd0c8c
EL
31 */
32abstract class root_backup_setting extends backup_setting {
33
85aad2ef
DM
34 /**
35 * {@inheritdoc}
36 */
69dd0c8c
EL
37 public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
38 $this->level = self::ROOT_LEVEL;
39 parent::__construct($name, $vtype, $value, $visibility, $status);
40 }
41}