Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400]

Cache administration helper. This file is part of Moodle's cache API, affectionately called MUC. It contains the components that are requried in order to use caching.

Author: Peter Burnett <peterburnett@catalyst-au.net>
Copyright: 2020 Catalyst IT
Copyright: 2012 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 431 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: administration_helper  - X-Ref

Administration helper base class.

Defines abstract methods for a subclass to define the admin page.

get_store_instance_summaries()   X-Ref
Returns an array containing all of the information about stores a renderer needs.

return: array

get_store_plugin_summaries()   X-Ref
Returns an array of information about plugins, everything a renderer needs.

return: array for each store, an array containing various information about each store.

get_definition_summaries()   X-Ref
Returns an array about the definitions. All the information a renderer needs.

return: array for each store, an array containing various information about each store.

get_default_mode_stores()   X-Ref
Get the default stores for all modes.

return: array An array containing sub-arrays, one for each mode.

get_lock_summaries()   X-Ref
Returns an array summarising the locks available in the system.

return: array array of lock summaries.

get_definition_sharing_options(int $sharingoption, bool $isselectedoptions = true)   X-Ref
Given a sharing option hash this function returns an array of strings that can be used to describe it.

return: array An array of lang_string's.
param: int $sharingoption The sharing option hash to get strings for.
param: bool $isselectedoptions Set to true if the strings will be used to view the selected options.

get_definition_store_options(string $component, string $area)   X-Ref
Get an array of stores that are suitable to be used for a given definition.

return: array Array containing 3 elements
param: string $component
param: string $area

get_store_plugin_actions(string $name, array $plugindetails)   X-Ref
This function must be implemented to display options for store plugins.

return: array array of actions.
param: string $name the name of the store plugin.
param: array $plugindetails array of store plugin details.

get_store_instance_actions(string $name, array $storedetails)   X-Ref
This function must be implemented to display options for store instances.

return: array array of actions.
param: string $name the store instance name.
param: array $storedetails array of store instance details.

get_definition_actions(\context $context, array $definitionsummary)   X-Ref
This function must be implemented to display options for definition mappings.

return: array array of actions.
param: context $context the context for the definition.
param: array $definitionsummary the definition summary.

get_addable_lock_options()   X-Ref
This function must be implemented to get addable locks.

return: array array of locks that are addable.