Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler:

Public Member Functions

 __construct (EntitySearchHelper $entitySearch)
 
 getParamSettings ()
 
 run (string $entityType)
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 prefixSearch (string $entityType, string $searchTerm, string $language)
 

Private Attributes

const ENTITY_TYPE_PATH_PARAM = 'entity_type'
 
const SEARCH_QUERY_PARAM = 'search'
 
const LANGUAGE_QUERY_PARAM = 'uselang'
 
const ENTITY_TYPE_MAP
 
const RESULTS_LIMIT = 5
 
EntitySearchHelper $entitySearch
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::__construct ( EntitySearchHelper $entitySearch)

Member Function Documentation

◆ factory()

static Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::factory ( )
static

◆ getParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::getParamSettings ( )

◆ prefixSearch()

Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::prefixSearch ( string $entityType,
string $searchTerm,
string $language )
private

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::run ( string $entityType)

Member Data Documentation

◆ $entitySearch

EntitySearchHelper Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::$entitySearch
private

◆ ENTITY_TYPE_MAP

const Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::ENTITY_TYPE_MAP
private
Initial value:
= [
'items' => Item::ENTITY_TYPE,
'properties' => Property::ENTITY_TYPE,
]

◆ ENTITY_TYPE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::ENTITY_TYPE_PATH_PARAM = 'entity_type'
private

◆ LANGUAGE_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::LANGUAGE_QUERY_PARAM = 'uselang'
private

◆ RESULTS_LIMIT

const Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::RESULTS_LIMIT = 5
private

◆ SEARCH_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SuggestEntitiesRouteHandler::SEARCH_QUERY_PARAM = 'search'
private

The documentation for this class was generated from the following file: