Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
|
Public Member Functions | |
get_attributes () | |
get_attributes_values () | |
get_settingdata () | |
get_value () | |
Gets the setting value. | |
get_visiblevalue () | |
save_attributes_values () | |
Saves the setting attributes values. | |
save_value ($name=false, $value=null) | |
Stores the setting into database, logs the change and returns the config_log inserted id. | |
set_attribute_value ($name, $value) | |
Protected Member Functions | |
apply_behaviors () | |
Applies the children class specific behaviors. | |
set_behaviors () | |
Each class can overwrite this method to specify extra processes. | |
set_value ($value) | |
Sets the setting value cleaning it. | |
set_visiblevalue () | |
The setting value is a sum of 'mod_quiz_admin_review_setting\times'. | |
to_log ($plugin, $name, $value, $actualvalue) | |
Copy of config_write method of the admin_setting class. | |
Protected Attributes | |
string | $attributes = false |
For multiple value settings, used to look for the other values. | |
array | $attributesvalues |
To store the setting attributes. | |
delegation | $delegation |
admin_setting | $settingdata |
mixed | $value |
The setting DB value. | |
string | $visiblevalue |
Stores the visible value of the setting DB value. | |
|
protectedinherited |
Applies the children class specific behaviors.
See delegation class for the available extra behaviors
|
inherited |
Gets the setting value.
mixed | The setting value |
|
inherited |
Saves the setting attributes values.
array | Array of inserted ids (in config_log) |
|
inherited |
Stores the setting into database, logs the change and returns the config_log inserted id.
bool | $name | Setting name to store. |
mixed | $value | Setting value to store. |
int|false | config_log inserted id or false whenever the new value is the same as old value. |
dml_exception | |
moodle_exception |
Reimplemented in core_adminpresets\local\setting\adminpresets_admin_setting_bloglevel, and core_adminpresets\local\setting\adminpresets_admin_setting_sitesettext.
|
inherited |
Reimplemented in core_adminpresets\local\setting\adminpresets_admin_setting_configtime.
|
protectedinherited |
Each class can overwrite this method to specify extra processes.
Reimplemented in core_adminpresets\local\setting\adminpresets_admin_setting_configmulticheckbox, core_adminpresets\local\setting\adminpresets_admin_setting_configmultiselect_with_loader, core_adminpresets\local\setting\adminpresets_admin_setting_users_with_capability, mod_quiz\adminpresets\adminpresets_mod_quiz_admin_setting_browsersecurity, mod_quiz\adminpresets\adminpresets_mod_quiz_admin_setting_grademethod, mod_quiz\adminpresets\adminpresets_mod_quiz_admin_setting_overduehandling, and mod_quiz\adminpresets\adminpresets_mod_quiz_admin_setting_user_image.
|
protectedinherited |
Sets the setting value cleaning it.
Child classes should overwrite method to clean more acurately
mixed | $value | Setting value |
mixed | Returns false if wrong param value |
Reimplemented in auth_ldap\adminpresets\adminpresets_auth_ldap_admin_setting_special_contexts_configtext, core_adminpresets\local\setting\adminpresets_admin_setting_configiplist, core_adminpresets\local\setting\adminpresets_admin_setting_configselect, core_adminpresets\local\setting\adminpresets_admin_setting_configtext, core_adminpresets\local\setting\adminpresets_admin_setting_configtime, core_adminpresets\local\setting\adminpresets_admin_setting_special_backupdays, and core_adminpresets\local\setting\adminpresets_admin_setting_users_with_capability.
|
protected |
The setting value is a sum of 'mod_quiz_admin_review_setting\times'.
Reimplemented from core_adminpresets\local\setting\adminpresets_setting.
|
protectedinherited |
Copy of config_write method of the admin_setting class.
string | $plugin | |
string | $name | |
mixed | $value | |
mixed | $actualvalue |
integer | The stored config_log id |