Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
WikibaseRepo.FederatedProperties.entitytypes.php File Reference

Variables

 return [ 'property'=>[Def::ARTICLE_ID_LOOKUP_CALLBACK=> function() { return new EntityArticleIdNullLookup();}, Def::URL_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityUrlLookup();}, Def::TITLE_TEXT_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityTitleTextLookup();}, Def::ENTITY_SEARCH_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntitySearchHelper();}, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiPrefetchingTermLookup();}, Def::REDIRECT_CHECKER_CALLBACK=> function() { return new class implements EntityRedirectChecker { public function isRedirect(EntityId $id):bool { return false;} };}, Def::EXISTENCE_CHECKER_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityExistenceChecker();},]]
 

Variable Documentation

◆ return

return['property'=>[ Def::ARTICLE_ID_LOOKUP_CALLBACK=> function() { return new EntityArticleIdNullLookup(); }, Def::URL_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityUrlLookup(); }, Def::TITLE_TEXT_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityTitleTextLookup(); }, Def::ENTITY_SEARCH_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntitySearchHelper(); }, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiPrefetchingTermLookup(); }, Def::REDIRECT_CHECKER_CALLBACK=> function() { return new class implements EntityRedirectChecker { public function isRedirect(EntityId $id):bool { return false; } }; }, Def::EXISTENCE_CHECKER_CALLBACK=> function() { return WikibaseRepo::getDefaultInstance() ->newFederatedPropertiesServiceFactory() ->newApiEntityExistenceChecker(); },]]