aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/SConfig.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-25 19:34:56 -0700
committerzotlabs <mike@macgirvin.com>2017-09-25 19:34:56 -0700
commitb9664f6980452390b120e0c7443fd773d527b3bd (patch)
tree07c1a2ddb752a087344d8844967c5888d7e03bca /Zotlabs/Lib/SConfig.php
parent0e76cec28ff734fdec4ba00d9787beb31ffd2cbb (diff)
parent741af8c1644a16f1ec44064090013953232bdce9 (diff)
downloadvolse-hubzilla-b9664f6980452390b120e0c7443fd773d527b3bd.tar.gz
volse-hubzilla-b9664f6980452390b120e0c7443fd773d527b3bd.tar.bz2
volse-hubzilla-b9664f6980452390b120e0c7443fd773d527b3bd.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Lib/SConfig.php')
-rw-r--r--Zotlabs/Lib/SConfig.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zotlabs/Lib/SConfig.php b/Zotlabs/Lib/SConfig.php
new file mode 100644
index 000000000..ca0d133b2
--- /dev/null
+++ b/Zotlabs/Lib/SConfig.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Zotlabs\Lib;
+
+// account configuration storage is built on top of the under-utilised xconfig
+
+class SConfig {
+
+ static public function Load($server_id) {
+ return XConfig::Load('s_' . $server_id);
+ }
+
+ static public function Get($server_id,$family,$key,$default = false) {
+ return XConfig::Get('s_' . $server_id,$family,$key, $default);
+ }
+
+ static public function Set($server_id,$family,$key,$value) {
+ return XConfig::Set('s_' . $server_id,$family,$key,$value);
+ }
+
+ static public function Delete($server_id,$family,$key) {
+ return XConfig::Delete('s_' . $server_id,$family,$key);
+ }
+
+}