f7cloud_client/lib/public/Settings/IDeclarativeSettingsFormWithHandlers.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

32 lines
673 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud 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;
}