1
0

Share_Backend_Collection.php 830 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // use OCP namespace for all classes that are considered public.
  8. // This means that they should be used by apps instead of the internal Nextcloud classes
  9. namespace OCP;
  10. /**
  11. * Interface for collections of items implemented by another share backend.
  12. * Extends the Share_Backend interface.
  13. * @since 5.0.0
  14. */
  15. interface Share_Backend_Collection extends Share_Backend {
  16. /**
  17. * Get the sources of the children of the item
  18. * @param string $itemSource
  19. * @return array Returns an array of children each inside an array with the keys: source, target, and file_path if applicable
  20. * @since 5.0.0
  21. */
  22. public function getChildren($itemSource);
  23. }