]> source.dussan.org Git - nextcloud-server.git/commitdiff
@deprecated messages for \OCP\Config and \OCP\AppConfig
authorMorris Jobke <hey@morrisjobke.de>
Thu, 27 Nov 2014 16:03:17 +0000 (17:03 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 8 Dec 2014 21:29:42 +0000 (22:29 +0100)
lib/public/config.php
lib/public/iappconfig.php

index 57c430251b50850ec6496c429cd3b134482bde02..05a3f651b3362120d2ce59f132b4503e22e18f39 100644 (file)
@@ -90,6 +90,7 @@ class Config {
         * @param string $key key
         * @param string $default = null, default value if the key does not exist
         * @return string the value or $default
+        * @deprecated use method getAppValue of \OCP\IConfig
         *
         * This function gets a value from the appconfig table. If the key does
         * not exist the default value will be returned
@@ -104,6 +105,7 @@ class Config {
         * @param string $key key
         * @param string $value value
         * @return boolean true/false
+        * @deprecated use method setAppValue of \OCP\IConfig
         *
         * Sets a value. If the key did not exist before it will be created.
         */
@@ -123,6 +125,7 @@ class Config {
         * @param string $key key
         * @param string $default = null, default value if the key does not exist
         * @return string the value or $default
+        * @deprecated use method getUserValue of \OCP\IConfig
         *
         * This function gets a value from the preferences table. If the key does
         * not exist the default value will be returned
@@ -138,6 +141,7 @@ class Config {
         * @param string $key key
         * @param string $value value
         * @return bool
+        * @deprecated use method setUserValue of \OCP\IConfig
         *
         * Adds a value to the preferences. If the key did not exist before, it
         * will be added automagically.
index d43eb70ee0450c7f85fa5c087b480e0df6644fc6..da4090d5e694bb87d8d76bab1163e3b44d1519d5 100644 (file)
@@ -26,6 +26,7 @@ interface IAppConfig {
         * @param string $key key
         * @param string $default = null, default value if the key does not exist
         * @return string the value or $default
+        * @deprecated use method getAppValue of \OCP\IConfig
         *
         * This function gets a value from the appconfig table. If the key does
         * not exist the default value will be returned
@@ -37,8 +38,7 @@ interface IAppConfig {
         * @param string $app app
         * @param string $key key
         * @return bool
-        *
-        * Deletes a key.
+        * @deprecated use method deleteAppValue of \OCP\IConfig
         */
        public function deleteKey($app, $key);
 
@@ -46,6 +46,7 @@ interface IAppConfig {
         * Get the available keys for an app
         * @param string $app the app we are looking for
         * @return array an array of key names
+        * @deprecated use method getAppKeys of \OCP\IConfig
         *
         * This function gets all keys of an app. Please note that the values are
         * not returned.
@@ -66,6 +67,7 @@ interface IAppConfig {
         * @param string $app app
         * @param string $key key
         * @param string $value value
+        * @deprecated use method setAppValue of \OCP\IConfig
         *
         * Sets a value. If the key did not exist before it will be created.
         * @return void