PagedProvider extends Provider
Provides a template for search functionality throughout ownCloud;
Tags
Table of Contents
- OPTION_APPS = 'apps'
- SIZE_ALL = 0
- show all results
- $options : array
- List of options
- __construct() : mixed
- Constructor
- getOption() : mixed
- get a value from the options array or null
- providesResultsFor() : bool
- checks if the given apps and the apps this provider has results for intersect returns true if the given array is empty (all apps) or if this provider does not have a list of apps it provides results for (legacy search providers) or if the two above arrays have elements in common (intersect)
- search() : array
- Search for $query
- searchPaged() : array
- Search for $query
Constants
OPTION_APPS
public
mixed
OPTION_APPS
= 'apps'
Tags
SIZE_ALL
show all results
public
mixed
SIZE_ALL
= ""
Tags
Properties
$options
List of options
protected
array
$options
Tags
Methods
__construct()
Constructor
public
__construct(array $options) : mixed
Parameters
- $options : array
-
as key => value
Tags
Return values
mixed —getOption()
get a value from the options array or null
public
getOption(string $key) : mixed
Parameters
- $key : string
Tags
Return values
mixed —providesResultsFor()
checks if the given apps and the apps this provider has results for intersect returns true if the given array is empty (all apps) or if this provider does not have a list of apps it provides results for (legacy search providers) or if the two above arrays have elements in common (intersect)
public
providesResultsFor([string[] $apps = array() ]) : bool
Parameters
- $apps : string[] = array()
Tags
Return values
bool —search()
Search for $query
public
search(string $query) : array
Parameters
- $query : string
Tags
Return values
array —An array of OCP\Search\Result's
searchPaged()
Search for $query
public
abstract searchPaged(string $query, int $page, int $size) : array
Parameters
- $query : string
- $page : int
-
pages start at page 1
- $size : int
-
0 = SIZE_ALL
Tags
Return values
array —An array of OCP\Search\Result's