Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

Defines backup_setting class

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 122 lines (4 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 2 classes

backup_setting:: (6 methods):
  __construct()
  get_level()
  make_ui()
  add_dependency()
  calculate_checksum()
  is_checksum_correct()

backup_setting_exception:: (0 methods):


Class: backup_setting  - X-Ref

Parent class for all backup settings

__construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED)   X-Ref
{@inheritdoc}


get_level()   X-Ref

return: int Level of the setting, eg {@link self::ROOT_LEVEL}

make_ui($type, $label, array $attributes = null, array $options = null)   X-Ref
Creates and sets a user interface for this setting given appropriate arguments

param: int $type
param: string $label
param: array $attributes
param: array $options

add_dependency(base_setting $dependentsetting, $type=setting_dependency::DISABLED_VALUE, $options=array()   X-Ref
No description

calculate_checksum()   X-Ref
No description

is_checksum_correct($checksum)   X-Ref
No description

Class: backup_setting_exception  - X-Ref

Exception class used by all the @backup_setting stuff