From 9327ac0ba73f400dc3f39181cc26f70ad15fb709 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 11 Jan 2016 23:54:53 -0800 Subject: "aconfig" or account configuration storage, needed for some upcoming work. Built on top of xconfig. --- include/config.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- cgit v1.2.3