Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_quiz\adminpresets\adminpresets_overdue_handling_setting Class Reference
Inheritance diagram for mod_quiz\adminpresets\adminpresets_overdue_handling_setting:
core_adminpresets\local\setting\adminpresets_admin_setting_configselect_with_advanced core_adminpresets\local\setting\adminpresets_admin_setting_configselect core_adminpresets\local\setting\adminpresets_setting

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)
 
 set_behaviors ()
 Each class can overwrite this method to specify extra processes.
 

Protected Member Functions

 apply_behaviors ()
 Applies the children class specific behaviors.
 
 set_value ($value)
 Sets the setting value cleaning it.
 
 set_visiblevalue ()
 Funcionality used by other _with_advanced settings.
 
 to_log ($plugin, $name, $value, $actualvalue)
 Copy of config_write method of the admin_setting class.
 

Protected Attributes

string $advancedkey
 Name of the advanced setting.
 
string $attributes = false
 For multiple value settings, used to look for the other values.
 
array $attributesvalues
 To store the setting attributes.
 
array array $behaviors = []
 To store the behaviors.
 
delegation $delegation
 
admin_setting_configselect $settingdata
 $settingdata
 
mixed $value
 The setting DB value.
 
string $visiblevalue
 Stores the visible value of the setting DB value.
 

Member Function Documentation

◆ apply_behaviors()

core_adminpresets\local\setting\adminpresets_setting::apply_behaviors ( )
protectedinherited

Applies the children class specific behaviors.

See delegation class for the available extra behaviors

◆ get_value()

core_adminpresets\local\setting\adminpresets_setting::get_value ( )
inherited

Gets the setting value.

Return values
mixedThe setting value

◆ save_attributes_values()

core_adminpresets\local\setting\adminpresets_setting::save_attributes_values ( )
inherited

Saves the setting attributes values.

Return values
array|falseArray of inserted ids (in config_log) or false if nothing was inserted

◆ save_value()

core_adminpresets\local\setting\adminpresets_setting::save_value ( $name = false,
$value = null )
inherited

Stores the setting into database, logs the change and returns the config_log inserted id.

Parameters
bool$nameSetting name to store.
mixed$valueSetting value to store.
Return values
int|falseconfig_log inserted id or false whenever the new value is the same as old value.

Reimplemented in core_adminpresets\local\setting\adminpresets_admin_setting_bloglevel, and core_adminpresets\local\setting\adminpresets_admin_setting_sitesettext.

◆ set_attribute_value()

core_adminpresets\local\setting\adminpresets_setting::set_attribute_value ( $name,
$value )
inherited

◆ set_behaviors()

mod_quiz\adminpresets\adminpresets_overdue_handling_setting::set_behaviors ( )

Each class can overwrite this method to specify extra processes.

Reimplemented from core_adminpresets\local\setting\adminpresets_setting.

◆ set_value()

core_adminpresets\local\setting\adminpresets_admin_setting_configselect::set_value ( $value)
protectedinherited

Sets the setting value cleaning it.

Parameters
mixed$valuemust be one of the setting choices.
Return values
booltrue if the value one of the setting choices

Reimplemented from core_adminpresets\local\setting\adminpresets_setting.

◆ set_visiblevalue()

core_adminpresets\local\setting\adminpresets_admin_setting_configselect_with_advanced::set_visiblevalue ( )
protectedinherited

Funcionality used by other _with_advanced settings.

Reimplemented from core_adminpresets\local\setting\adminpresets_admin_setting_configselect.

◆ to_log()

core_adminpresets\local\setting\adminpresets_setting::to_log ( $plugin,
$name,
$value,
$actualvalue )
protectedinherited

Copy of config_write method of the admin_setting class.

Parameters
string$plugin
string$name
mixed$value
mixed$actualvalue
Return values
integerThe stored config_log id

The documentation for this class was generated from the following file: