Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Api\QuerySearchEntities Class Reference

API module to search for Wikibase entities that can be used as a generator. More...

+ Inheritance diagram for Wikibase\Repo\Api\QuerySearchEntities:
+ Collaboration diagram for Wikibase\Repo\Api\QuerySearchEntities:

Public Member Functions

 __construct (ApiQuery $apiQuery, string $moduleName, LinkBatchFactory $linkBatchFactory, EntitySearchHelper $entitySearchHelper, EntityTitleLookup $titleLookup, ContentLanguages $termsLanguages, array $entityTypes, array $searchProfiles)
 
 execute ()
 
 executeGenerator ( $resultPageSet)
 
 getCacheMode ( $params)
 
 isInternal ()
 

Static Public Member Functions

static factory (ApiQuery $apiQuery, string $moduleName, LinkBatchFactory $linkBatchFactory, array $enabledEntityTypes, array $entitySearchHelperCallbacks, EntityTitleLookup $entityTitleLookup, SettingsArray $repoSettings, ContentLanguages $termsLanguages)
 

Protected Member Functions

 getAllowedParams ()
 
 getExamplesMessages ()
 

Private Member Functions

 getSearchResults (array $params)
 

Private Attributes

LinkBatchFactory $linkBatchFactory
 
EntitySearchHelper $entitySearchHelper
 
EntityTitleLookup $titleLookup
 
ContentLanguages $termsLanguages
 
array $entityTypes
 
array $searchProfiles
 

Detailed Description

API module to search for Wikibase entities that can be used as a generator.

Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Api\QuerySearchEntities::__construct ( ApiQuery $apiQuery,
string $moduleName,
LinkBatchFactory $linkBatchFactory,
EntitySearchHelper $entitySearchHelper,
EntityTitleLookup $titleLookup,
ContentLanguages $termsLanguages,
array $entityTypes,
array $searchProfiles )

Member Function Documentation

◆ execute()

Wikibase\Repo\Api\QuerySearchEntities::execute ( )

◆ executeGenerator()

Wikibase\Repo\Api\QuerySearchEntities::executeGenerator ( $resultPageSet)
Parameters
ApiPageSet$resultPageSet

◆ factory()

static Wikibase\Repo\Api\QuerySearchEntities::factory ( ApiQuery $apiQuery,
string $moduleName,
LinkBatchFactory $linkBatchFactory,
array $enabledEntityTypes,
array $entitySearchHelperCallbacks,
EntityTitleLookup $entityTitleLookup,
SettingsArray $repoSettings,
ContentLanguages $termsLanguages )
static

◆ getAllowedParams()

Wikibase\Repo\Api\QuerySearchEntities::getAllowedParams ( )
protected

◆ getCacheMode()

Wikibase\Repo\Api\QuerySearchEntities::getCacheMode ( $params)
See also
ApiQueryBase::getCacheMode
Parameters
array$params
Returns
string

◆ getExamplesMessages()

Wikibase\Repo\Api\QuerySearchEntities::getExamplesMessages ( )
protected

◆ getSearchResults()

Wikibase\Repo\Api\QuerySearchEntities::getSearchResults ( array $params)
private
Parameters
array$params
Returns
TermSearchResult[]
Exceptions

ApiUsageException

◆ isInternal()

Wikibase\Repo\Api\QuerySearchEntities::isInternal ( )

Member Data Documentation

◆ $entitySearchHelper

EntitySearchHelper Wikibase\Repo\Api\QuerySearchEntities::$entitySearchHelper
private

◆ $entityTypes

array Wikibase\Repo\Api\QuerySearchEntities::$entityTypes
private

◆ $linkBatchFactory

LinkBatchFactory Wikibase\Repo\Api\QuerySearchEntities::$linkBatchFactory
private

◆ $searchProfiles

array Wikibase\Repo\Api\QuerySearchEntities::$searchProfiles
private

◆ $termsLanguages

ContentLanguages Wikibase\Repo\Api\QuerySearchEntities::$termsLanguages
private

◆ $titleLookup

EntityTitleLookup Wikibase\Repo\Api\QuerySearchEntities::$titleLookup
private

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