ISearch.php 870 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Collaboration\Collaborators;
  7. /**
  8. * Interface ISearch
  9. *
  10. * @since 13.0.0
  11. */
  12. interface ISearch {
  13. /**
  14. * @param string $search
  15. * @param array $shareTypes
  16. * @param bool $lookup
  17. * @param int $limit
  18. * @param int $offset
  19. * @return array with two elements, 1st ISearchResult as array, 2nd a bool indicating whether more result are available
  20. * @since 13.0.0
  21. */
  22. public function search($search, array $shareTypes, $lookup, $limit, $offset);
  23. /**
  24. * @param array $pluginInfo with keys 'shareType' containing the name of a corresponding constant in \OCP\Share and
  25. * 'class' with the class name of the plugin
  26. * @since 13.0.0
  27. */
  28. public function registerPlugin(array $pluginInfo);
  29. }