summaryrefslogtreecommitdiffstats
path: root/lib/public/iconfig.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-09-20 22:45:22 +0200
committerBart Visscher <bartv@thisnet.nl>2013-09-20 22:45:22 +0200
commit0c6dcdba6b890dc170f59a461ab80961a85a53db (patch)
treea27fbaff7348c9c8878134e38aa8592fec3b15b0 /lib/public/iconfig.php
parentd3d52dd23f3da9a3d9ed2b50b1abd1a229dc4be8 (diff)
downloadnextcloud-server-0c6dcdba6b890dc170f59a461ab80961a85a53db.tar.gz
nextcloud-server-0c6dcdba6b890dc170f59a461ab80961a85a53db.zip
Add missing implements and fix parameters in IConfig
Diffstat (limited to 'lib/public/iconfig.php')
-rw-r--r--lib/public/iconfig.php22
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index dab4590969b..850bddf6935 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -1,10 +1,12 @@
<?php
-/** * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
+/**
+ * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*
*/
+
namespace OCP;
/**
@@ -29,31 +31,35 @@ interface IConfig {
/**
* Writes a new app wide value
+ * @param string $appName the appName that we want to store the value under
* @param string $key the key of the value, under which will be saved
* @param string $value the value that should be stored
*/
- public function setAppValue($key, $value, $appName=null);
+ public function setAppValue($appName, $key, $value);
/**
* Looks up an app wide defined value
+ * @param string $appName the appName that we stored the value under
* @param string $key the key of the value, under which it was saved
* @return string the saved value
*/
- public function getAppValue($key, $appName=null);
+ public function getAppValue($appName, $key);
/**
- * Shortcut for setting a user defined value
+ * Set a user defined value
+ * @param string $userId the userId of the user that we want to store the value under
+ * @param string $appName the appName that we want to store the value under
* @param string $key the key under which the value is being stored
* @param string $value the value that you want to store
- * @param string $userId the userId of the user that we want to store the value under, defaults to the current one
*/
- public function setUserValue($key, $value, $userId=null);
+ public function setUserValue($userId, $appName, $key, $value);
/**
* Shortcut for getting a user defined value
+ * @param string $userId the userId of the user that we want to store the value under
+ * @param string $appName the appName that we stored the value under
* @param string $key the key under which the value is being stored
- * @param string $userId the userId of the user that we want to store the value under, defaults to the current one
*/
- public function getUserValue($key, $userId=null);
+ public function getUserValue($userId, $appName, $key);
}