Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
   1  <?php
   2  
   3  /**

   4   * Null cache object to use when no caching is on.

   5   */
   6  class HTMLPurifier_DefinitionCache_Null extends HTMLPurifier_DefinitionCache
   7  {
   8  
   9      /**

  10       * @param HTMLPurifier_Definition $def

  11       * @param HTMLPurifier_Config $config

  12       * @return bool

  13       */
  14      public function add($def, $config)
  15      {
  16          return false;
  17      }
  18  
  19      /**

  20       * @param HTMLPurifier_Definition $def

  21       * @param HTMLPurifier_Config $config

  22       * @return bool

  23       */
  24      public function set($def, $config)
  25      {
  26          return false;
  27      }
  28  
  29      /**

  30       * @param HTMLPurifier_Definition $def

  31       * @param HTMLPurifier_Config $config

  32       * @return bool

  33       */
  34      public function replace($def, $config)
  35      {
  36          return false;
  37      }
  38  
  39      /**

  40       * @param HTMLPurifier_Config $config

  41       * @return bool

  42       */
  43      public function remove($config)
  44      {
  45          return false;
  46      }
  47  
  48      /**

  49       * @param HTMLPurifier_Config $config

  50       * @return bool

  51       */
  52      public function get($config)
  53      {
  54          return false;
  55      }
  56  
  57      /**

  58       * @param HTMLPurifier_Config $config

  59       * @return bool

  60       */
  61      public function flush($config)
  62      {
  63          return false;
  64      }
  65  
  66      /**

  67       * @param HTMLPurifier_Config $config

  68       * @return bool

  69       */
  70      public function cleanup($config)
  71      {
  72          return false;
  73      }
  74  }
  75  
  76  // vim: et sw=4 sts=4