From 6585eaa5df7a4481638a334926743d496f243d65 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 26 Sep 2014 12:51:25 +0200 Subject: Added failing unit tests for mount config hooks --- lib/private/files/filesystem.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index db46bcfd1ea..cdbbbf3d3cd 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -158,6 +158,11 @@ class Filesystem { */ const signal_param_run = 'run'; + const signal_create_mount = 'create_mount'; + const signal_delete_mount = 'delete_mount'; + const signal_param_mount_type = 'mounttype'; + const signal_param_users = 'users'; + /** * @var \OC\Files\Storage\Loader $loader */ -- cgit v1.2.3 From 12ac3a800df10cada530c57659bd9fdbc770079b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 28 Sep 2014 16:13:52 +0200 Subject: Expose getAppKeys trough \OCP\IConfig --- lib/private/allconfig.php | 9 +++++++++ lib/public/iconfig.php | 7 +++++++ 2 files changed, 16 insertions(+) (limited to 'lib') diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index 721ec337ff8..7ebff7cf2db 100644 --- a/lib/private/allconfig.php +++ b/lib/private/allconfig.php @@ -43,6 +43,15 @@ class AllConfig implements \OCP\IConfig { \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 755da09ee6b..404cf030dee 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -58,6 +58,13 @@ interface IConfig { */ 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 -- cgit v1.2.3