MDL-43033 cache: fixed display of definition stores in admin interface

This commit is contained in:
Sam Hemelryk
2013-12-02 09:29:37 +13:00
parent 5f70bde008
commit c8e3e6f1f0
4 changed files with 80 additions and 67 deletions
+27
View File
@@ -962,4 +962,31 @@ class cache_definition {
public function has_required_identifiers() {
return (count($this->requireidentifiers) > 0);
}
/**
* Returns the possible sharing options that can be used with this defintion.
*
* @return int
*/
public function get_sharing_options() {
return $this->sharingoptions;
}
/**
* Returns the user entered sharing key for this definition.
*
* @return string
*/
public function get_user_input_sharing_key() {
return $this->userinputsharingkey;
}
/**
* Returns the user selected sharing option for this definition.
*
* @return int
*/
public function get_selected_sharing_option() {
return $this->selectedsharingoption;
}
}