Wikibase
MediaWiki Wikibase extension
|
Variables | |
return [ 'property'=>[Def::ARTICLE_ID_LOOKUP_CALLBACK=> function() { return new EntityArticleIdNullLookup();}, Def::URL_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntityUrlLookup();}, Def::TITLE_TEXT_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntityTitleTextLookup();}, Def::ENTITY_SEARCH_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntitySearchHelper();}, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->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::getFederatedPropertiesServiceFactory() ->newApiEntityExistenceChecker();},],] | |
return['property'=>[ Def::ARTICLE_ID_LOOKUP_CALLBACK=> function() { return new EntityArticleIdNullLookup(); }, Def::URL_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntityUrlLookup(); }, Def::TITLE_TEXT_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntityTitleTextLookup(); }, Def::ENTITY_SEARCH_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->newApiEntitySearchHelper(); }, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> function() { return WikibaseRepo::getFederatedPropertiesServiceFactory() ->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::getFederatedPropertiesServiceFactory() ->newApiEntityExistenceChecker(); },],] |