Expose getAppKeys trough \OCP\IConfig

This commit is contained in:
Robin Appelman 2014-09-28 16:13:52 +02:00 committed by Vincent Petry
parent 6585eaa5df
commit 12ac3a800d
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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