1
0

IManager.php 744 B

123456789101112131415161718192021222324252627
  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\AutoComplete;
  7. /**
  8. * Interface IManager
  9. *
  10. * @since 13.0.0
  11. */
  12. interface IManager {
  13. /**
  14. * @param string $className – class name of the ISorter implementation
  15. * @since 13.0.0
  16. */
  17. public function registerSorter($className);
  18. /**
  19. * @param array $sorters list of sorter IDs, separated by "|"
  20. * @param array $sortArray array representation of OCP\Collaboration\Collaborators\ISearchResult
  21. * @param array $context context info of the search, keys: itemType, itemId
  22. * @since 13.0.0
  23. */
  24. public function runSorters(array $sorters, array &$sortArray, array $context);
  25. }