HumHub Documentation (unofficial)

MetaSearchProviderInterface

Meta Search Provider Interface

Tags
since
1.16

Table of Contents

Methods

getAllResultsText()  : string
Get text of link to go to all results
getIsHiddenWhenEmpty()  : bool
getKeyword()  : string|null
Get a current keyword
getName()  : string
Get name of the Search Provider
getResults()  : array<string|int, mixed>
Run search process to get results
getRoute()  : string|array<string|int, mixed>
Get a route to provider page
getService()  : MetaSearchService
Get a service for searching
getSortOrder()  : int
Get sort order

Methods

getIsHiddenWhenEmpty()

public getIsHiddenWhenEmpty() : bool
Return values
bool

True if provider should be hidden when no results are found

getResults()

Run search process to get results

public getResults(int $maxResults) : array<string|int, mixed>
Parameters
$maxResults : int
Return values
array<string|int, mixed>

'totalCount' - Number of total searched records, 'results' - Array of searched records MetaSearchResultInterface[]

getRoute()

Get a route to provider page

public getRoute() : string|array<string|int, mixed>
Return values
string|array<string|int, mixed>

        
On this page

Search results