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/ -> forms.php (source)

Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Forms used for the administration and managemement of the cache setup. 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: 385 lines (14 kb)
Included or required:0 times
Referenced: 6 times
Includes or requires: 0 files

Defines 5 classes

cachestore_addinstance_form:: (2 methods):
  definition()
  validation()

cache_definition_mappings_form:: (1 method):
  definition()

cache_definition_sharing_form:: (3 methods):
  definition()
  set_data()
  validation()

cache_mode_mappings_form:: (1 method):
  definition()

cache_lock_form:: (4 methods):
  definition()
  validation()
  plugin_definition()
  plugin_validation()


Class: cachestore_addinstance_form  - X-Ref

Add store instance form.

definition()   X-Ref
The definition of the add instance form


validation($data, $files)   X-Ref
Validates the add instance form data

param: array $data
param: array $files
return: array

Class: cache_definition_mappings_form  - X-Ref

Form to set definition mappings

definition()   X-Ref
The definition of the form


Class: cache_definition_sharing_form  - X-Ref

Form to set definition sharing option

definition()   X-Ref
The definition of the form


set_data($data)   X-Ref
Sets the data for this form.

param: array $data

validation($data, $files)   X-Ref
Validates this form

param: array $data
param: array $files
return: array

Class: cache_mode_mappings_form  - X-Ref

Form to set the mappings for a mode.

definition()   X-Ref
The definition of the form


Class: cache_lock_form  - X-Ref

Form to add a cache lock instance.

All cache lock plugins that wish to have custom configuration should override
this form, and more explicitly the plugin_definition and plugin_validation methods.

definition()   X-Ref
Defines this form.


validation($data, $files)   X-Ref
Validates this form.

param: array $data
param: array $files
return: array

plugin_definition()   X-Ref
Plugin specific definition.


plugin_validation($data, $files, array $errors)   X-Ref
Plugin specific validation.

param: array $data
param: array $files
param: array $errors
return: array