mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 06:35:19 +00:00
33 lines
719 B
PHP
33 lines
719 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Lib;
|
|
|
|
/**
|
|
* @brief Site configuration storage is built on top of the under-utilised xconfig.
|
|
*
|
|
* @see XConfig
|
|
*/
|
|
|
|
class SConfig
|
|
{
|
|
|
|
public static function Load($server_id)
|
|
{
|
|
return XConfig::Load('s_' . $server_id);
|
|
}
|
|
|
|
public static function Get($server_id, $family, $key, $default = false)
|
|
{
|
|
return XConfig::Get('s_' . $server_id, $family, $key, $default);
|
|
}
|
|
|
|
public static function Set($server_id, $family, $key, $value)
|
|
{
|
|
return XConfig::Set('s_' . $server_id, $family, $key, $value);
|
|
}
|
|
|
|
public static function Delete($server_id, $family, $key)
|
|
{
|
|
return XConfig::Delete('s_' . $server_id, $family, $key);
|
|
}
|
|
}
|