Nextcloud PHP API (master)

ISearchQuery

The query objected passed into \OCP\Search\IProvider::search

This mainly wraps the search term, but will ensure that Nextcloud can add new optional properties to a search request without having break the interface of \OCP\Search\IProvider::search.

Tags
see
IProvider::search
since
20.0.0

Table of Contents

Constants

SORT_DATE_DESC  = 1

Methods

getCursor()  : int|string|null
Get the app-specific cursor of the tail of the previous result entries
getFilter()  : IFilter|null
Get a single request filter
getFilters()  : IFilterCollection
Get request filters
getLimit()  : int
Get the number of items to return for a paginated result
getRoute()  : string
getRouteParameters()  : array<string|int, mixed>
getSortOrder()  : int
Get the sort order of results as defined as SORT_* constants on this interface
getTerm()  : string
Get the user-entered search term to find matches for

Constants

SORT_DATE_DESC

public mixed SORT_DATE_DESC = 1
Tags
since
20.0.0

Methods

getCursor()

Get the app-specific cursor of the tail of the previous result entries

public getCursor() : int|string|null
Tags
see
IProvider

for details

since
20.0.0
Return values
int|string|null

getFilter()

Get a single request filter

public getFilter(string $name) : IFilter|null
Parameters
$name : string
Tags
since
28.0.0
Return values
IFilter|null

getLimit()

Get the number of items to return for a paginated result

public getLimit() : int
Tags
see
IProvider

for details

since
20.0.0
Return values
int

getRoute()

public getRoute() : string
Tags
since
20.0.0
Return values
string

getRouteParameters()

public getRouteParameters() : array<string|int, mixed>
Tags
since
20.0.0
Return values
array<string|int, mixed>

getSortOrder()

Get the sort order of results as defined as SORT_* constants on this interface

public getSortOrder() : int
Tags
since
20.0.0
Return values
int

getTerm()

Get the user-entered search term to find matches for

public getTerm() : string
Tags
since
20.0.0
Return values
string

the search term


        
On this page

Search results