Nextcloud PHP API (stable19)

ISearch

Interface ISearch

Tags
since
13.0.0

Table of Contents

registerPlugin()  : mixed
search()  : array

Methods

registerPlugin()

public registerPlugin(array $pluginInfo) : mixed
Parameters
$pluginInfo : array

with keys 'shareType' containing the name of a corresponding constant in \OCP\Share and 'class' with the class name of the plugin

Tags
since
13.0.0
Return values
mixed
public search(string $search, array $shareTypes, bool $lookup, int $limit, int $offset) : array
Parameters
$search : string
$shareTypes : array
$lookup : bool
$limit : int
$offset : int
Tags
since
13.0.0
Return values
array

with two elements, 1st ISearchResult as array, 2nd a bool indicating whether more result are available

Search results