-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48721 from nextcloud/feat/allow-getter-setter-dec…
…l-fors
- Loading branch information
Showing
12 changed files
with
183 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
apps/files/lib/Listener/DeclarativeSettingsGetValueEventListener.php
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
apps/files/lib/Listener/DeclarativeSettingsSetValueEventListener.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
lib/public/Settings/IDeclarativeSettingsFormWithHandlers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace OCP\Settings; | ||
|
||
use OCP\IUser; | ||
|
||
/** | ||
* @since 31.0.0 | ||
*/ | ||
interface IDeclarativeSettingsFormWithHandlers extends IDeclarativeSettingsForm { | ||
|
||
/** | ||
* This function is called to get the current value of a specific forms field. | ||
* @since 31.0.0 | ||
*/ | ||
public function getValue(string $fieldId, IUser $user): mixed; | ||
|
||
/** | ||
* This function is called when a user updated a form field to persist the setting. | ||
* @since 31.0.0 | ||
*/ | ||
public function setValue(string $fieldId, mixed $value, IUser $user): void; | ||
|
||
} |
Oops, something went wrong.