Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Cache store feature: configurable. More...
Static Public Member Functions | |
static | config_get_configuration_array ($data) |
Given the data from the add instance form this function creates a configuration array. | |
static | config_set_edit_form_data (moodleform $editform, array $config) |
Allows the cache store to set its data against the edit form before it is shown to the user. | |
Cache store feature: configurable.
This feature should be implemented by all cache stores that are configurable when adding an instance. It requires the implementation of methods required to convert form data into the a configuration array for the store instance, and then the reverse converting configuration data into an array that can be used to set the data for the edit form.
Can be implemented by classes already implementing cache_store.
|
static |
Given the data from the add instance form this function creates a configuration array.
stdClass | $data |
array |
Implemented in cachestore_apcu, cachestore_file, and cachestore_redis.
|
static |
Allows the cache store to set its data against the edit form before it is shown to the user.
moodleform | $editform | |
array | $config |
Implemented in cachestore_apcu, cachestore_file, and cachestore_redis.