aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/ocs.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/ocs.php')
-rw-r--r--lib/private/ocs.php32
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;
- }
-
}