Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is 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: 3 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