HumHub Documentation (unofficial)

MetaSearchService
in package

Meta Search Service

Tags
author

luke

since
1.16

Table of Contents

Properties

$cacheTimeout  : int
$pageSize  : int
$provider  : MetaSearchProviderInterface|null
$results  : array<string|int, MetaSearchResultInterface>|null
$route  : string|null
$totalCount  : int|null

Methods

__construct()  : mixed
getLinkTarget()  : string|null
Get a link target depending on URL, external URLs should be opened in a new window
getResults()  : array<string|int, MetaSearchResultInterface>
Get searched results
getTotal()  : int
Get number of results
getUrl()  : string
Get URL to all results filtered with keyword
hasResults()  : bool
Has at least one searched result
isSearched()  : bool
Check if a searching has been done
search()  : void
Run search process and cache results

Properties

$route

protected string|null $route = null

Route to the searching page with all filters

Methods

getLinkTarget()

Get a link target depending on URL, external URLs should be opened in a new window

public getLinkTarget([string|null $url = null ]) : string|null
Parameters
$url : string|null = null
Return values
string|null

getUrl()

Get URL to all results filtered with keyword

public getUrl() : string
Return values
string

hasResults()

Has at least one searched result

public hasResults() : bool
Return values
bool

isSearched()

Check if a searching has been done

public isSearched() : bool
Return values
bool

        
On this page

Search results