diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index 721ec337ff8c7fa06c34d3b052fcc01faab05c1e..7ebff7cf2db8629d78f621c815ed353ea95122f8 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 755da09ee6ba0a3cb817627db56ffa0cf9819e80..404cf030dee998de37145918a34e89152d36b350 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