|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
The cache config class used when the Cache has been disabled. More...
Public Member Functions | |
| add_store_instance ($name, $plugin, array $configuration=array()) | |
| Adds a plugin instance. | |
| delete_store_instance ($name) | |
| Deletes a store instance. | |
| edit_store_instance ($name, $plugin, $configuration) | |
| Edits a give plugin instance. | |
| set_definition_mappings ($definition, $mappings) | |
| Sets the mappings for a given definition. | |
| set_mode_mappings (array $modemappings) | |
| Sets the mode mappings. | |
Static Public Member Functions | |
| static | create_default_configuration ($forcesave=false) |
| Creates the default configuration and saves it. | |
| static | instance () |
| Returns an instance of the configuration writer. | |
| static | update_definitions ($coreonly=false) |
| Updates the definition in the configuration from those found in the cache files. | |
Protected Member Functions | |
| config_save () | |
| Saves the current configuration. | |
| generate_configuration_array () | |
| Generates a configuration array suitable to be written to the config file. | |
Static Protected Member Functions | |
| static | locate_definitions ($coreonly=false) |
| Locates all of the definition files. | |
The cache config class used when the Cache has been disabled.
| cache_config_disabled::add_store_instance | ( | $name, | |
| $plugin, | |||
| array | $configuration = array() ) |
Adds a plugin instance.
| string | $name | Unused. |
| string | $plugin | Unused. |
| array | $configuration | Unused. |
| bool |
| cache_exception |
|
static |
Creates the default configuration and saves it.
| bool | $forcesave | Ignored because we are disabled! |
| array |
| cache_config_disabled::delete_store_instance | ( | $name | ) |
Deletes a store instance.
| string | $name | Unused. |
| bool |
| cache_exception |
| cache_config_disabled::edit_store_instance | ( | $name, | |
| $plugin, | |||
| $configuration ) |
Edits a give plugin instance.
| string | $name | Unused. |
| string | $plugin | Unused. |
| array | $configuration | Unused. |
| bool |
| cache_exception |
|
protected |
Generates a configuration array suitable to be written to the config file.
| array |
|
static |
Returns an instance of the configuration writer.
| cache_config_disabled |
|
staticprotected |
Locates all of the definition files.
| bool | $coreonly | Unused. |
| array |
| cache_config_disabled::set_definition_mappings | ( | $definition, | |
| $mappings ) |
Sets the mappings for a given definition.
| string | $definition | Unused. |
| array | $mappings | Unused. |
| coding_exception |
| cache_config_disabled::set_mode_mappings | ( | array | $modemappings | ) |
Sets the mode mappings.
| array | $modemappings | Unused. |
| bool |
| cache_exception |
|
static |
Updates the definition in the configuration from those found in the cache files.
| bool | $coreonly | Unused. |