]> git.mxchange.org Git - friendica.git/blob - src/Core/Config/IConfigCache.php
3) Introducing ConfigFactory
[friendica.git] / src / Core / Config / IConfigCache.php
1 <?php
2
3 namespace Friendica\Core\Config;
4
5 interface IConfigCache
6 {
7         /**
8          * @param string $cat     Config category
9          * @param string $key       Config key
10          * @param mixed  $default Default value if it isn't set
11          *
12          * @return mixed Returns the value of the Config entry
13          */
14         function get($cat, $key = null, $default = null);
15
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         function set($cat, $key, $value);
24
25         /**
26          * Deletes a value from the config cache
27          *
28          * @param string $cat  Config category
29          * @param string $key  Config key
30          */
31         function delete($cat, $key);
32
33         function getAll();
34 }