diff options
Diffstat (limited to 'lib/public/Share_Backend.php')
-rw-r--r-- | lib/public/Share_Backend.php | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/lib/public/Share_Backend.php b/lib/public/Share_Backend.php index 6b046df0feb..0fa79854e10 100644 --- a/lib/public/Share_Backend.php +++ b/lib/public/Share_Backend.php @@ -1,30 +1,12 @@ <?php + /** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Björn Schießle <bjoern@schiessle.org> - * @author Joas Schilling <coding@schilljs.com> - * @author Morris Jobke <hey@morrisjobke.de> - * @author Robin McCorkell <robin@mccorkell.me.uk> - * @author Roeland Jago Douma <roeland@famdouma.nl> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * + * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only */ // use OCP namespace for all classes that are considered public. -// This means that they should be used by apps instead of the internal ownCloud classes +// This means that they should be used by apps instead of the internal Nextcloud classes namespace OCP; @@ -33,7 +15,6 @@ namespace OCP; * @since 5.0.0 */ interface Share_Backend { - /** * Check if this $itemSource exist for the user * @param string $itemSource @@ -49,14 +30,14 @@ interface Share_Backend { * Get a unique name of the item for the specified user * @param string $itemSource * @param string|false $shareWith User the item is being shared with - * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7 * @return string Target name * * This function needs to verify that the user does not already have an item with this name. * If it does generate a new name e.g. name_# * @since 5.0.0 + * @deprecated 31.0.0 */ - public function generateTarget($itemSource, $shareWith, $exclude = null); + public function generateTarget($itemSource, $shareWith); /** * Converts the shared item sources back into the item in the specified format @@ -83,7 +64,7 @@ interface Share_Backend { public function formatItems($items, $format, $parameters = null); /** - * Check if a given share type is allowd by the back-end + * Check if a given share type is allowed by the back-end * * @param int $shareType share type * @return boolean |