Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-15 21:03:19 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-16 01:56:17 +0300
commit9edca39b49f6b7fcfc4e43b61b88204222ad5e91 (patch)
tree71dbdb71ecb3eaa7659ad2be9b89f6db13e3a8b0 /lib/public/Settings
parent6c6338b81072ba58b662d2f03cab6cfdbfdf4a18 (diff)
attempt to remove section and settings entries when an app got disabled
Diffstat (limited to 'lib/public/Settings')
-rw-r--r--lib/public/Settings/IManager.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/Settings/IManager.php b/lib/public/Settings/IManager.php
index 8aa7a9ac248..cba4efbd037 100644
--- a/lib/public/Settings/IManager.php
+++ b/lib/public/Settings/IManager.php
@@ -51,6 +51,20 @@ interface IManager {
public function setupSettings(array $settings);
/**
+ * attempts to remove an apps section and/or settings entry. A listener is
+ * added centrally making sure that this method is called ones an app was
+ * disabled.
+ *
+ * What this does not help with is when applications change their settings
+ * or section classes during their life time. New entries will be added,
+ * but inactive ones will still reside in the database.
+ *
+ * @param string $appId
+ * @since 9.1.0
+ */
+ public function onAppDisabled($appId);
+
+ /**
* returns a list of the admin sections
*
* @return array array of ISection[] where key is the priority