Expand all

mobile.startup/search.SearchGateway

Interact with MediaWiki search API.

Constructor

new module:mobile.startup/search.SearchGateway(api) #

Parameters:

Name Type Description
api mw.Api
Source:

Properties

searchNamespace :number #

The namespace to search in.

Type:

  • number
Source:
The namespace to search in.

Methods

getApiData(query) → {Object} #

Get the data used to do the search query api call.

Parameters:

Name Type Description
query string

to search for

Source:

Returns:

Type
Object
Get the data used to do the search query api call.

isCached(query) → {boolean} #

Check if the search has already been performed in given session.

Parameters:

Name Type Description
query string
Source:

Returns:

Type
boolean
Check if the search has already been performed in given session.
Perform a search for the given query.