You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.3KB

  1. <?php
  2. /**
  3. * Null cache object to use when no caching is on.
  4. */
  5. class HTMLPurifier_DefinitionCache_Null extends HTMLPurifier_DefinitionCache
  6. {
  7. /**
  8. * @param HTMLPurifier_Definition $def
  9. * @param HTMLPurifier_Config $config
  10. * @return bool
  11. */
  12. public function add($def, $config)
  13. {
  14. return false;
  15. }
  16. /**
  17. * @param HTMLPurifier_Definition $def
  18. * @param HTMLPurifier_Config $config
  19. * @return bool
  20. */
  21. public function set($def, $config)
  22. {
  23. return false;
  24. }
  25. /**
  26. * @param HTMLPurifier_Definition $def
  27. * @param HTMLPurifier_Config $config
  28. * @return bool
  29. */
  30. public function replace($def, $config)
  31. {
  32. return false;
  33. }
  34. /**
  35. * @param HTMLPurifier_Config $config
  36. * @return bool
  37. */
  38. public function remove($config)
  39. {
  40. return false;
  41. }
  42. /**
  43. * @param HTMLPurifier_Config $config
  44. * @return bool
  45. */
  46. public function get($config)
  47. {
  48. return false;
  49. }
  50. /**
  51. * @param HTMLPurifier_Config $config
  52. * @return bool
  53. */
  54. public function flush($config)
  55. {
  56. return false;
  57. }
  58. /**
  59. * @param HTMLPurifier_Config $config
  60. * @return bool
  61. */
  62. public function cleanup($config)
  63. {
  64. return false;
  65. }
  66. }
  67. // vim: et sw=4 sts=4