aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-11 23:54:53 -0800
committerredmatrix <git@macgirvin.com>2016-01-11 23:54:53 -0800
commit9327ac0ba73f400dc3f39181cc26f70ad15fb709 (patch)
tree8ef757d71b90fca27cb9a1477dfcdc93067c6cf4
parenta8a5cb05a7f0e85f0979b38280e7887bc12e80ed (diff)
downloadvolse-hubzilla-9327ac0ba73f400dc3f39181cc26f70ad15fb709.tar.gz
volse-hubzilla-9327ac0ba73f400dc3f39181cc26f70ad15fb709.tar.bz2
volse-hubzilla-9327ac0ba73f400dc3f39181cc26f70ad15fb709.zip
"aconfig" or account configuration storage, needed for some upcoming work. Built on top of xconfig.
-rw-r--r--include/config.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/config.php b/include/config.php
index c94d25eb8..f65e4a470 100644
--- a/include/config.php
+++ b/include/config.php
@@ -531,3 +531,22 @@ function del_xconfig($xchan, $family, $key) {
);
return $ret;
}
+
+
+// account configuration storage is built on top of the under-utilised xconfig
+
+function load_aconfig($account_id) {
+ load_xconfig('a_' . $account_id);
+}
+
+function get_aconfig($account_id, $family, $key) {
+ return get_xconfig('a_' . $account_id, $family, $key);
+}
+
+function set_aconfig($account_id, $family, $key, $value) {
+ return set_xconfig('a_' . $account_id, $family, $key, $value);
+}
+
+function del_aconfig($account_id, $family, $key) {
+ return del_xconfig('a_' . $account_id, $family, $key);
+} \ No newline at end of file