diff options
author | redmatrix <git@macgirvin.com> | 2016-01-11 23:54:53 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-11 23:54:53 -0800 |
commit | 9327ac0ba73f400dc3f39181cc26f70ad15fb709 (patch) | |
tree | 8ef757d71b90fca27cb9a1477dfcdc93067c6cf4 | |
parent | a8a5cb05a7f0e85f0979b38280e7887bc12e80ed (diff) | |
download | volse-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.php | 19 |
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 |