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