Explain how to add several IDelegatedSettings classes 'settings'

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>
This commit is contained in:
zak39
2022-06-03 09:49:58 +02:00
committed by Baptiste Fotia
parent 3f29bfb14d
commit efa31104f0

View File

@@ -162,3 +162,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) {
....
}
...
}