Class: CategoryGateway

CategoryGateway()

new CategoryGateway()

Api for CategoryOverlay

Source:

Extends

Members

canContinue

Source:

continueParams

Source:

searchNamespace :number

The namespace to search in.

Type:
  • number
Overrides:
Source:

Methods

getApiData(query) → {Object}

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

Parameters:
Name Type Description
query string

to search for

Inherited From:
Source:
Returns:
Type
Object

getCategories(title) → {jQuery.Deferred|boolean}

Returns the categories the title belongs to.

Parameters:
Name Type Description
title string

Title of the current page (to add the categories to)

Source:
Returns:

False, if no further continuation is possible, jQuery.Deferred otherwise.

Type
jQuery.Deferred | boolean

isCached(query) → {boolean}

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

Parameters:
Name Type Description
query string
Inherited From:
Source:
Returns:
Type
boolean

save(title, categories) → {jQuery.Deferred}

Saves the categories passed to this function to the page

Parameters:
Name Type Description
title string

Title of the current page (to add the categories to)

categories string

List of Categories to add

Source:
Returns:
Type
jQuery.Deferred

Perform a search for the given query.

Parameters:
Name Type Description
query string

to search for

Inherited From:
Source:
Returns:
Type
jQuery.Deferred