Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(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.

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

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

param: array $notifications
return: string

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

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

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

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