Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there)
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.

IConfigCache.php 858B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Friendica\Core\Config;
  3. /**
  4. * The interface for a system-wide ConfigCache
  5. */
  6. interface IConfigCache
  7. {
  8. /**
  9. * @param string $cat Config category
  10. * @param string $key Config key
  11. * @param mixed $default Default value if it isn't set
  12. *
  13. * @return mixed Returns the value of the Config entry
  14. */
  15. function get($cat, $key = null, $default = null);
  16. /**
  17. * Sets a value in the config cache. Accepts raw output from the config table
  18. *
  19. * @param string $cat Config category
  20. * @param string $key Config key
  21. * @param mixed $value Value to set
  22. *
  23. * @return bool True, if the value is set
  24. */
  25. function set($cat, $key, $value);
  26. /**
  27. * Deletes a value from the config cache
  28. *
  29. * @param string $cat Config category
  30. * @param string $key Config key
  31. */
  32. function delete($cat, $key);
  33. function getAll();
  34. }