diff options
author | zak39 <fotia.baptiste@hotmail.com> | 2022-06-03 10:49:58 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-06-03 17:45:57 +0300 |
commit | 43d9dc610a3e634d9a023f1824622b3fa972d351 (patch) | |
tree | a90702dbf785c3b656b17aafd5b36ebdf43cd14a | |
parent | e6c6fd056eabe1f3e39358af3594a4fce0212598 (diff) |
Explain how to add several IDelegatedSettings classes 'settings'backport/8495/stable23
In this documentation, there is no explanation on how to add several IDelegatedSettings' classes for a function.
Signed-off-by: zak39 <fotia.baptiste@hotmail.com>
-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) { + .... + } + ... + } |