PagedProvider

class OCP\Search\PagedProvider
Provides a template for search functionality throughout ownCloud;
Source:lib/public/Search/PagedProvider.php#35
Parent:OCP\Search\Provider

Constants

SIZE_ALL = 0
show all results
Source:lib/public/Search/PagedProvider.php#42
Since:8.0.0
Deprecated:20.0.0

Methods

public OCP\Search\PagedProvider::__construct($options)
Constructor
Source:

lib/public/Search/PagedProvider.php#50

Parameters:
  • $options (array)
Since:

8.0.0

Deprecated:

20.0.0

public OCP\Search\PagedProvider::search($query)
Search for $query
Source:

lib/public/Search/PagedProvider.php#61

Parameters:
  • $query (string)
Returns:

array An array of OCP\Search\Result’s

Since:

8.0.0

Deprecated:

20.0.0

public abstract OCP\Search\PagedProvider::searchPaged($query, $page, $size)
Search for $query
Source:

lib/public/Search/PagedProvider.php#75

Parameters:
  • $query (string)
  • $page (int) pages start at page 1
  • $size (int) 0 = SIZE_ALL
Returns:

array An array of OCP\Search\Result’s

Since:

8.0.0

Deprecated:

20.0.0