ISearch
Small Interface for Search
Tags
Table of Contents
- clearProviders() : mixed
- Remove all registered search providers
- registerProvider() : mixed
- Register a new search provider to search with
- removeProvider() : mixed
- Remove one existing search provider
- searchPaged() : array
- Search all providers for $query
Methods
clearProviders()
Remove all registered search providers
public
clearProviders() : mixed
Tags
Return values
mixed —registerProvider()
Register a new search provider to search with
public
registerProvider(string $class[, array $options = [] ]) : mixed
Parameters
- $class : string
-
class name of a OCP\Search\Provider
- $options : array = []
-
optional
Tags
Return values
mixed —removeProvider()
Remove one existing search provider
public
removeProvider(string $provider) : mixed
Parameters
- $provider : string
-
class name of a OCP\Search\Provider
Tags
Return values
mixed —searchPaged()
Search all providers for $query
public
searchPaged(string $query[, string[] $inApps = [] ][, int $page = 1 ][, int $size = 30 ]) : array
Parameters
- $query : string
- $inApps : string[] = []
-
optionally limit results to the given apps
- $page : int = 1
-
pages start at page 1
- $size : int = 30
Tags
Return values
array —An array of OCP\Search\Result's