diff options
author | Daniel <mail@danielkesselberg.de> | 2022-06-29 00:01:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 00:01:11 +0300 |
commit | d43e096eb52fef0adf946f7f3ce512da0b978814 (patch) | |
tree | 017256f925b41ae2021dca8f3047b685ca9d482b | |
parent | a40f193d240ee27c6b1a1fe0b979c7990af89f42 (diff) | |
parent | 43d9dc610a3e634d9a023f1824622b3fa972d351 (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.rst | 17 |
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) { + .... + } + ... + } |