HumHub Documentation (unofficial)

MarketplaceSearchProvider
in package
implements MetaSearchProviderInterface

Marketplace Modules Meta Search Provider

Tags
author

luke

since
1.16

Table of Contents

Interfaces

MetaSearchProviderInterface
Meta Search Provider Interface

Properties

$keyword  : string|null
$route  : string|array<string|int, mixed>|null
$service  : MetaSearchService|null

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

Properties

Methods

getAllResultsText()

Get text of link to go to all results

public getAllResultsText() : string
Tags
inheritdoc
Return values
string

getIsHiddenWhenEmpty()

public getIsHiddenWhenEmpty() : bool
Tags
inheritdoc
Return values
bool

True if provider should be hidden when no results are found

getKeyword()

Get a current keyword

public getKeyword() : string|null
Tags
inheritdoc
Return values
string|null

getResults()

Run search process to get results

public getResults(int $maxResults) : array<string|int, mixed>
Parameters
$maxResults : int
Tags
inheritdoc
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>
Tags
inheritdoc
Return values
string|array<string|int, mixed>

        
On this page

Search results