2016-06-08 11:02:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2017-11-08 23:02:50 +01:00
|
|
|
* System Configuration Class
|
|
|
|
*
|
2016-06-10 11:52:01 +02:00
|
|
|
* @file include/Core/Config.php
|
2016-09-30 15:22:35 +02:00
|
|
|
*
|
2020-01-19 07:05:23 +01:00
|
|
|
* Contains the class with methods for system configuration
|
2016-06-08 11:02:18 +02:00
|
|
|
*/
|
2017-11-08 23:02:50 +01:00
|
|
|
namespace Friendica\Core;
|
2016-06-08 11:02:18 +02:00
|
|
|
|
2019-12-15 23:28:01 +01:00
|
|
|
use Friendica\DI;
|
2019-07-21 20:24:16 +02:00
|
|
|
|
2016-06-08 11:02:18 +02:00
|
|
|
/**
|
2020-01-19 07:05:23 +01:00
|
|
|
* Arbitrary system configuration storage
|
2017-11-26 12:43:02 +01:00
|
|
|
*
|
2016-06-08 11:02:18 +02:00
|
|
|
* Note:
|
2017-11-26 12:43:02 +01:00
|
|
|
* If we ever would decide to return exactly the variable type as entered,
|
|
|
|
* we will have fun with the additional features. :-)
|
2016-06-08 11:02:18 +02:00
|
|
|
*/
|
2019-12-15 23:28:01 +01:00
|
|
|
class Config
|
2017-11-19 20:15:25 +01:00
|
|
|
{
|
2016-06-08 11:02:18 +02:00
|
|
|
/**
|
2020-01-19 07:05:23 +01:00
|
|
|
* Deletes the given key from the system configuration.
|
2016-06-08 11:02:18 +02:00
|
|
|
*
|
2019-02-10 19:52:21 +01:00
|
|
|
* @param string $cat The category of the configuration value
|
2017-11-19 20:15:25 +01:00
|
|
|
* @param string $key The configuration key to delete
|
|
|
|
*
|
2019-02-10 19:52:21 +01:00
|
|
|
* @return bool
|
2016-06-08 11:02:18 +02:00
|
|
|
*/
|
2019-02-10 19:52:21 +01:00
|
|
|
public static function delete($cat, $key)
|
2017-11-19 20:15:25 +01:00
|
|
|
{
|
2019-12-15 23:28:01 +01:00
|
|
|
return DI::config()->delete($cat, $key);
|
2016-06-08 11:02:18 +02:00
|
|
|
}
|
|
|
|
}
|