[Pkg-owncloud-commits] [owncloud] 232/258: Expose getAppKeys trough \OCP\IConfig

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 4858b5e94a9a64ee30bc66473e5864c853e92b33
Author: Robin Appelman <icewind at owncloud.com>
Date:   Sun Sep 28 16:13:52 2014 +0200

    Expose getAppKeys trough \OCP\IConfig
---
 lib/private/allconfig.php | 18 ++++++++++++++++++
 lib/public/iconfig.php    | 14 ++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index eb11454..f87277f 100644
--- a/lib/private/allconfig.php
+++ b/lib/private/allconfig.php
@@ -34,6 +34,24 @@ class AllConfig implements \OCP\IConfig {
 		return \OCP\Config::getSystemValue($key, $default);
 	}
 
+	/**
+	 * Delete a system wide defined value
+	 *
+	 * @param string $key the key of the value, under which it was saved
+	 */
+	public function deleteSystemValue($key) {
+		\OCP\Config::deleteSystemValue($key);
+	}
+
+	/**
+	 * Get all keys stored for an app
+	 *
+	 * @param string $appName the appName that we stored the value under
+	 * @return string[] the keys stored for the app
+	 */
+	public function getAppKeys($appName) {
+		return \OC::$server->getAppConfig()->getKeys($appName);
+	}
 
 	/**
 	 * Writes a new app wide value
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index d4a8cdc..1d13a7a 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -51,6 +51,20 @@ interface IConfig {
 	 */
 	public function getSystemValue($key, $default = '');
 
+	/**
+	 * Delete a system wide defined value
+	 *
+	 * @param string $key the key of the value, under which it was saved
+	 */
+	public function deleteSystemValue($key);
+
+	/**
+	 * Get all keys stored for an app
+	 *
+	 * @param string $appName the appName that we stored the value under
+	 * @return string[] the keys stored for the app
+	 */
+	public function getAppKeys($appName);
 
 	/**
 	 * Writes a new app wide value

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list