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.

(no description)

File Size: 550 lines (21 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: renderer  - X-Ref

The cache renderer (mainly admin interfaces).

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

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

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

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

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

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

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

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

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

return: string
param: array $locks

additional_lock_actions()   X-Ref
Renders additional actions for locks, such as Add.

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),
);

return: string
param: array $notifications

usage_tables(array $usage)   X-Ref
Creates the two tables which display on the usage page.

return: array Array of 2 tables (main and summary table)
param: array $usage Usage information (from cache_helper::usage)

usage_page(\html_table $maintable, \html_table $summarytable, \moodleform $samplesform)   X-Ref
Renders the usage page.

return: string HTML for page
param: \html_table $maintable Main table
param: \html_table $summarytable Summary table
param: \moodleform $samplesform Form to select number of samples