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

github.com/nextcloud/documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2022-06-29 00:01:11 +0300
committerGitHub <noreply@github.com>2022-06-29 00:01:11 +0300
commitd43e096eb52fef0adf946f7f3ce512da0b978814 (patch)
tree017256f925b41ae2021dca8f3047b685ca9d482b
parenta40f193d240ee27c6b1a1fe0b979c7990af89f42 (diff)
parent43d9dc610a3e634d9a023f1824622b3fa972d351 (diff)
Merge pull request #8511 from nextcloud/backport/8495/stable23
[stable23] Explain how to add several IDelegatedSettings in the key "settings"
-rw-r--r--developer_manual/basics/setting.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/developer_manual/basics/setting.rst b/developer_manual/basics/setting.rst
index 7533ffd81..c04d92891 100644
--- a/developer_manual/basics/setting.rst
+++ b/developer_manual/basics/setting.rst
@@ -176,3 +176,20 @@ setting with annotations.
...
}
+
+If you have several classes that implement `IDelegatedSettings` for a function. You must add them in the key "settings" and they must seperate with semi-colons.
+
+.. code-block:: php
+
+ <?php
+ class NotesSettingsController extends Controller {
+ /**
+ * Save settings
+ * @PasswordConfirmationRequired
+ * @AuthorizedAdminSetting(settings=OCA\NotesTutorial\Settings\NotesAdmin;OCA\NotesTutorial\Settings\NotesSubAdmin)
+ */
+ public function saveSettings($mySetting) {
+ ....
+ }
+ ...
+ }