From 330d026be73efb6e6630094c34607a0feb6dd3ff Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Wed, 30 Oct 2013 19:36:29 +0100 Subject: fix the privatedata key value store --- lib/private/ocs.php | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'lib/private/ocs.php') 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; - } - } -- cgit v1.2.3