diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-10-30 19:36:29 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-10-30 19:36:29 +0100 |
commit | 330d026be73efb6e6630094c34607a0feb6dd3ff (patch) | |
tree | 56ab0a1c73ef041e52d9286a714b996ee4277135 /lib/private/ocs.php | |
parent | d21a5b45f3f47d27a72d9acee4189eefc8104092 (diff) | |
download | nextcloud-server-330d026be73efb6e6630094c34607a0feb6dd3ff.tar.gz nextcloud-server-330d026be73efb6e6630094c34607a0feb6dd3ff.zip |
fix the privatedata key value store
Diffstat (limited to 'lib/private/ocs.php')
-rw-r--r-- | lib/private/ocs.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/private/ocs.php b/lib/private/ocs.php index 93e8931ce2e..e067196cf11 100644 --- a/lib/private/ocs.php +++ b/lib/private/ocs.php @@ -228,36 +228,4 @@ class OC_OCS { } } } - - /** - * get private data - * @param string $user - * @param string $app - * @param string $key - * @param bool $like use LIKE instead of = when comparing keys - * @return array - */ - public static function getData($user, $app="", $key="") { - if($app) { - $apps=array($app); - }else{ - $apps=OC_Preferences::getApps($user); - } - if($key) { - $keys=array($key); - }else{ - foreach($apps as $app) { - $keys=OC_Preferences::getKeys($user, $app); - } - } - $result=array(); - foreach($apps as $app) { - foreach($keys as $key) { - $value=OC_Preferences::getValue($user, $app, $key); - $result[]=array('app'=>$app, 'key'=>$key, 'value'=>$value); - } - } - return $result; - } - } |