2017-08-31 16:47:02 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2017-08-31 16:47:02 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-08-31 16:47:02 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Collaboration\Collaborators;
|
|
|
|
|
|
2017-09-05 16:14:15 -04:00
|
|
|
/**
|
|
|
|
|
* Interface ISearch
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2017-08-31 16:47:02 -04:00
|
|
|
interface ISearch {
|
|
|
|
|
/**
|
|
|
|
|
* @param string $search
|
|
|
|
|
* @param array $shareTypes
|
|
|
|
|
* @param bool $lookup
|
|
|
|
|
* @param int $limit
|
|
|
|
|
* @param int $offset
|
|
|
|
|
* @return array with two elements, 1st ISearchResult as array, 2nd a bool indicating whether more result are available
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function search($search, array $shareTypes, $lookup, $limit, $offset);
|
2017-09-06 15:57:00 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param array $pluginInfo with keys 'shareType' containing the name of a corresponding constant in \OCP\Share and
|
|
|
|
|
* 'class' with the class name of the plugin
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function registerPlugin(array $pluginInfo);
|
2017-08-31 16:47:02 -04:00
|
|
|
}
|