MDL-37500 cache: implemented sharing options and gui

This commit is contained in:
Sam Hemelryk
2013-05-07 11:57:37 +12:00
parent 95190fda69
commit 46e17f04c7
10 changed files with 290 additions and 12 deletions
+15
View File
@@ -231,6 +231,21 @@ class cache_config {
// Invalid cache mode used for the definition.
continue;
}
// Default the sharing option as it was added for 2.5.
// This can be removed sometime after the release of 2.6.
if (!array_key_exists('sharingoptions', $conf)) {
$conf['sharingoptions'] = cache_definition::SHARING_DEFAULTOPTIONS;
}
// Default the selected sharing option as it was added for 2.5.
// This can be removed sometime after the release of 2.6.
if (!array_key_exists('selectedsharingoption', $conf)) {
$conf['selectedsharingoption'] = cache_definition::SHARING_DEFAULT;
}
// Default the user input sharing key as it was added for 2.5.
// This can be removed sometime after the release of 2.6.
if (!array_key_exists('userinputsharingkey', $conf)) {
$conf['userinputsharingkey'] = '';
}
$this->configdefinitions[$id] = $conf;
}