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

IPConfigCache.php 996B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace Friendica\Core\Config;
  3. /**
  4. * The interface for a user-specific config cache
  5. */
  6. interface IPConfigCache
  7. {
  8. /**
  9. * Retrieves a value from the user config cache
  10. *
  11. * @param int $uid User Id
  12. * @param string $cat Config category
  13. * @param string $key Config key
  14. * @param mixed $default Default value if key isn't set
  15. *
  16. * @return string The value of the config entry
  17. */
  18. function getP($uid, $cat, $key = null, $default = null);
  19. /**
  20. * Sets a value in the user config cache
  21. *
  22. * Accepts raw output from the pconfig table
  23. *
  24. * @param int $uid User Id
  25. * @param string $cat Config category
  26. * @param string $key Config key
  27. * @param mixed $value Value to set
  28. */
  29. function setP($uid, $cat, $key, $value);
  30. /**
  31. * Deletes a value from the user config cache
  32. *
  33. * @param int $uid User Id
  34. * @param string $cat Config category
  35. * @param string $key Config key
  36. */
  37. function deleteP($uid, $cat, $key);
  38. function getAll();
  39. }