Search moodle.org's
Developer Documentation


Long Term Support Release

  • Bug fixes for general core bugs in 3.1.x ended 8 May 2017 (12 months).
  • Bug fixes for security issues in 3.1.x ended 13 May 2019 (36 months).
  • minimum PHP 5.4.4 (always use latest PHP 5.4.x , 5.5.x or 5.6.x on Windows - http://windows.php.net/download/). PHP 7.0.x is supported but has some engine limitations. PHP 7.1.x is not supported.
  • /cache/ -> forms.php (source)

    Differences Between: [Versions 29 and 31] [Versions 30 and 31]

    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: 5 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

    Search This Site: