Expose getAppKeys trough \OCP\IConfig
This commit is contained in:
parent
6585eaa5df
commit
12ac3a800d
|
@ -43,6 +43,15 @@ class AllConfig implements \OCP\IConfig {
|
||||||
\OCP\Config::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
|
* Writes a new app wide value
|
||||||
|
|
|
@ -58,6 +58,13 @@ interface IConfig {
|
||||||
*/
|
*/
|
||||||
public function deleteSystemValue($key);
|
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
|
* Writes a new app wide value
|
||||||
|
|
Loading…
Reference in New Issue