Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
/cache/ -> renderer.php (source)

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

The Cache renderer. This file is part of Moodle's cache API, affectionately called MUC.

Copyright: 2012 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 419 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_cache_renderer:: (6 methods):
  store_instance_summariers()
  store_plugin_summaries()
  definition_summaries()
  mode_mappings()
  lock_summaries()
  notifications()


Class: core_cache_renderer  - X-Ref

The cache renderer (mainly admin interfaces).

store_instance_summariers(array $storeinstancesummaries, array $storepluginsummaries)   X-Ref
Displays store summaries.

param: array $storeinstancesummaries information about each store instance,
param: array $storepluginsummaries information about each store plugin as
return: string HTML

store_plugin_summaries(array $storepluginsummaries)   X-Ref
Displays plugin summaries.

param: array $storepluginsummaries information about each store plugin as
return: string HTML

definition_summaries(array $definitionsummaries, context $context)   X-Ref
Displays definition summaries.

param: array $definitionsummaries information about each definition, as returned by
param: context $context the system context.
return: string HTML.

mode_mappings($applicationstore, $sessionstore, $requeststore, moodle_url $editurl)   X-Ref
Displays mode mappings

param: string $applicationstore
param: string $sessionstore
param: string $requeststore
param: moodle_url $editurl
return: string HTML

lock_summaries(array $locks)   X-Ref
Display basic information about lock instances.

param: array $locks
return: string

notifications(array $notifications = array()   X-Ref
Renders an array of notifications for the cache configuration screen.

Takes an array of notifications with the form:
$notifications = array(
array('This is a success message', true),
array('This is a failure message', false),
);

param: array $notifications
return: string