root setting to control if restore will create groups/grouping information.
More...
|
const | ACTIVITY_LEVEL = 13 |
|
const | CHANGED_STATUS = 3 |
|
const | CHANGED_VALUE = 1 |
|
const | CHANGED_VISIBILITY = 2 |
|
const | COURSE_LEVEL = 5 |
|
const | HIDDEN = 0 |
|
const | IS_BOOLEAN = 'bool' |
|
const | IS_FILENAME = 'file' |
|
const | IS_INTEGER = 'int' |
|
const | IS_PATH = 'path' |
|
const | IS_TEXT = 'text' |
|
const | LOCKED_BY_CONFIG = 5 |
|
const | LOCKED_BY_HIERARCHY = 7 |
|
const | LOCKED_BY_PERMISSION = 9 |
|
const | NOT_LOCKED = 3 |
|
const | ROOT_LEVEL = 1 |
|
const | SECTION_LEVEL = 9 |
|
const | UI_HTML_CHECKBOX = 10 |
|
const | UI_HTML_DROPDOWN = 30 |
|
const | UI_HTML_RADIOBUTTON = 20 |
|
const | UI_HTML_TEXTFIELD = 40 |
|
const | UI_NONE = 0 |
|
const | VISIBLE = 1 |
|
root setting to control if restore will create groups/grouping information.
Depends on @restore_users_setting
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Copyright
- 2014 Matt Sammarco
◆ add_dependency()
Quick method to add a dependency to this setting.
The dependency created is done so by inspecting this setting and the setting that is passed in as the dependent setting.
- Parameters
-
Reimplemented from base_setting.
◆ calculate_checksum()
backup_setting::calculate_checksum |
( |
| ) |
|
|
inherited |
This function will return one unique and stable checksum for one instance of the class implementing it.
It's each implementation responsibility to do it recursively if needed and use optional store (caching) of the checksum if necessary/possible
Implements checksumable.
◆ destroy()
base_setting::destroy |
( |
| ) |
|
|
inherited |
Destroy all circular references.
It helps PHP 5.2 a lot!
◆ get_help()
base_setting::get_help |
( |
| ) |
|
|
inherited |
Gets the help string params for this setting if it has been set.
- Return values
-
array|false | An array (identifier, component) or false if not set |
◆ get_level()
backup_setting::get_level |
( |
| ) |
|
|
inherited |
◆ get_my_dependency_properties()
base_setting::get_my_dependency_properties |
( |
|
$settingname = null | ) |
|
|
inherited |
Gets an array of properties for all of the dependencies that will affect this setting.
This method returns an array rather than the dependencies in order to minimise the memory footprint of for the potentially huge recursive dependency structure that we may be dealing with.
This method also ensures that all dependencies are transmuted to affect the setting in question and that we don't provide any duplicates.
- Parameters
-
string | null | $settingname | |
- Return values
-
◆ get_param_validation()
base_setting::get_param_validation |
( |
| ) |
|
|
inherited |
Get the PARAM_XXXX validation to be applied to the setting.
- Return values
-
string | The PARAM_XXXX constant of null if the setting type is not defined |
◆ get_settings_depended_on()
base_setting::get_settings_depended_on |
( |
| ) |
|
|
inherited |
Returns all of the dependencies that affect this setting.
e.g. settings this setting depends on.
- Return values
-
◆ get_ui()
Gets the user interface for this setting.
- Return values
-
◆ has_dependencies_on_settings()
base_setting::has_dependencies_on_settings |
( |
| ) |
|
|
inherited |
Checks if this setting is dependent on any other settings.
- Return values
-
bool | True if this setting is dependent on any other settings |
◆ has_dependent_settings()
base_setting::has_dependent_settings |
( |
| ) |
|
|
inherited |
Checks if there are other settings that are dependent on this setting.
- Return values
-
bool | True if there are other settings that are dependent on this setting |
◆ has_help()
base_setting::has_help |
( |
| ) |
|
|
inherited |
Returns true if help has been set for this setting.
- Return values
-
◆ is_checksum_correct()
backup_setting::is_checksum_correct |
( |
|
$checksum | ) |
|
|
inherited |
Given one checksum, returns if matches object's checksum (true) or no (false)
Implements checksumable.
◆ make_ui()
backup_setting::make_ui |
( |
|
$type, |
|
|
|
$label, |
|
|
array |
$attributes = null , |
|
|
array |
$options = null |
|
) |
| |
|
inherited |
Creates and sets a user interface for this setting given appropriate arguments.
- Parameters
-
int | $type | |
string | $label | |
array | $attributes | |
array | $options | |
◆ register_dependency()
Adds a dependency where another setting depends on this setting.
- Parameters
-
◆ register_dependent_dependency()
Adds a dependency where this setting is dependent on another.
This should only be called internally once we are sure it is not cicrular.
- Parameters
-
◆ set_help()
base_setting::set_help |
( |
|
$identifier, |
|
|
|
$component = 'moodle' |
|
) |
| |
|
inherited |
Sets a help string for this setting.
- Parameters
-
string | $identifier | |
string | $component | |
◆ set_ui()
Sets the user interface for this setting.
- Parameters
-
◆ validate_value()
base_setting::validate_value |
( |
|
$vtype, |
|
|
|
$value |
|
) |
| |
|
protectedinherited |
The documentation for this class was generated from the following file: