3 * System Configuration Class
5 * @file include/Core/Config.php
7 * Contains the class with methods for system configuration
9 namespace Friendica\Core;
14 * Arbitrary system configuration storage
17 * If we ever would decide to return exactly the variable type as entered,
18 * we will have fun with the additional features. :-)
23 * Stores a config value ($value) in the category ($cat) under the key ($key)
25 * Note: Please do not store booleans - convert to 0/1 integer values!
27 * @param string $cat The category of the configuration value
28 * @param string $key The configuration key to set
29 * @param mixed $value The value to store
31 * @return bool Operation success
33 public static function set($cat, $key, $value)
35 return DI::config()->set($cat, $key, $value);
39 * Deletes the given key from the system configuration.
41 * @param string $cat The category of the configuration value
42 * @param string $key The configuration key to delete
46 public static function delete($cat, $key)
48 return DI::config()->delete($cat, $key);