WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
WikibaseLexeme.entitytypes.php File Reference

Variables

 return [ 'lexeme'=>[Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup(WikibaseRepo::getEntityTitleLookup());}, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new ExternalLexemeSerializer(new StorageLexemeSerializer($serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer()));}, Def::DESERIALIZER_FACTORY_CALLBACK=> static function(DeserializerFactory $deserializerFactory) { return new LexemeDeserializer($deserializerFactory->newEntityIdDeserializer(), $deserializerFactory->newStatementListDeserializer());}, Def::ENTITY_ID_PATTERN=> LexemeId::PATTERN, Def::ENTITY_ID_BUILDER=> static function( $serialization) { return new LexemeId( $serialization);}, Def::ENTITY_ID_COMPOSER_CALLBACK=> static function( $uniquePart) { return new LexemeId( 'L' . $uniquePart);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new LexemeDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new LexemePatcher();}, Def::JS_DESERIALIZER_FACTORY_FUNCTION=> 'wikibase.lexeme.getDeserializer', Def::SUB_ENTITY_TYPES=>['form', 'sense',], Def::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.lexeme', Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup();},], 'form'=>[Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup(WikibaseRepo::getEntityTitleLookup());}, Def::ENTITY_STORE_FACTORY_CALLBACK=> static function(EntityStore $defaultStore, EntityRevisionLookup $lookup) { return new FormStore( $defaultStore, $lookup);}, Def::ENTITY_REVISION_LOOKUP_FACTORY_CALLBACK=> static function(EntityRevisionLookup $defaultLookup) { return new FormRevisionLookup( $defaultLookup);}, Def::ENTITY_TITLE_STORE_LOOKUP_FACTORY_CALLBACK=> static function(EntityTitleStoreLookup $defaultLookup) { return new FormTitleStoreLookup( $defaultLookup);}, Def::ENTITY_ID_PATTERN=> FormId::PATTERN, Def::ENTITY_ID_BUILDER=> static function( $serialization) { return new FormId( $serialization);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new FormDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new FormPatcher();}, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new FormSerializer($serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer());}, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup();}, DEF::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.form',], 'sense'=>[Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup(WikibaseRepo::getEntityTitleLookup());}, Def::ENTITY_STORE_FACTORY_CALLBACK=> static function(EntityStore $defaultStore, EntityRevisionLookup $lookup) { return new SenseStore( $defaultStore, $lookup);}, Def::ENTITY_REVISION_LOOKUP_FACTORY_CALLBACK=> static function(EntityRevisionLookup $defaultLookup) { return new SenseRevisionLookup( $defaultLookup);}, Def::ENTITY_TITLE_STORE_LOOKUP_FACTORY_CALLBACK=> static function(EntityTitleStoreLookup $defaultLookup) { return new SenseTitleStoreLookup( $defaultLookup);}, Def::ENTITY_ID_PATTERN=> SenseId::PATTERN, Def::ENTITY_ID_BUILDER=> static function( $serialization) { return new SenseId( $serialization);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new SenseDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new SensePatcher();}, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new SenseSerializer($serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer());}, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup();}, DEF::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.sense',],]
 

Variable Documentation

◆ return

return['lexeme'=>[ Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup( WikibaseRepo::getEntityTitleLookup()); }, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new ExternalLexemeSerializer( new StorageLexemeSerializer( $serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer())); }, Def::DESERIALIZER_FACTORY_CALLBACK=> static function(DeserializerFactory $deserializerFactory) { return new LexemeDeserializer( $deserializerFactory->newEntityIdDeserializer(), $deserializerFactory->newStatementListDeserializer()); }, Def::ENTITY_ID_PATTERN=> LexemeId::PATTERN, Def::ENTITY_ID_BUILDER=> static function($serialization) { return new LexemeId($serialization); }, Def::ENTITY_ID_COMPOSER_CALLBACK=> static function($uniquePart) { return new LexemeId('L' . $uniquePart); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new LexemeDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new LexemePatcher(); }, Def::JS_DESERIALIZER_FACTORY_FUNCTION=> 'wikibase.lexeme.getDeserializer', Def::SUB_ENTITY_TYPES=>[ 'form', 'sense',], Def::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.lexeme', Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup(); },], 'form'=>[ Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup( WikibaseRepo::getEntityTitleLookup()); }, Def::ENTITY_STORE_FACTORY_CALLBACK=> static function( EntityStore $defaultStore, EntityRevisionLookup $lookup) { return new FormStore($defaultStore, $lookup); }, Def::ENTITY_REVISION_LOOKUP_FACTORY_CALLBACK=> static function( EntityRevisionLookup $defaultLookup) { return new FormRevisionLookup($defaultLookup); }, Def::ENTITY_TITLE_STORE_LOOKUP_FACTORY_CALLBACK=> static function( EntityTitleStoreLookup $defaultLookup) { return new FormTitleStoreLookup($defaultLookup); }, Def::ENTITY_ID_PATTERN=> FormId::PATTERN, Def::ENTITY_ID_BUILDER=> static function($serialization) { return new FormId($serialization); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new FormDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new FormPatcher(); }, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new FormSerializer( $serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer()); }, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup(); }, DEF::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.form',], 'sense'=>[ Def::ARTICLE_ID_LOOKUP_CALLBACK=> static function() { return new TitleLookupBasedEntityArticleIdLookup( WikibaseRepo::getEntityTitleLookup()); }, Def::ENTITY_STORE_FACTORY_CALLBACK=> static function( EntityStore $defaultStore, EntityRevisionLookup $lookup) { return new SenseStore($defaultStore, $lookup); }, Def::ENTITY_REVISION_LOOKUP_FACTORY_CALLBACK=> static function( EntityRevisionLookup $defaultLookup) { return new SenseRevisionLookup($defaultLookup); }, Def::ENTITY_TITLE_STORE_LOOKUP_FACTORY_CALLBACK=> static function( EntityTitleStoreLookup $defaultLookup) { return new SenseTitleStoreLookup($defaultLookup); }, Def::ENTITY_ID_PATTERN=> SenseId::PATTERN, Def::ENTITY_ID_BUILDER=> static function($serialization) { return new SenseId($serialization); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> static function() { return new SenseDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> static function() { return new SensePatcher(); }, Def::SERIALIZER_FACTORY_CALLBACK=> static function(SerializerFactory $serializerFactory) { return new SenseSerializer( $serializerFactory->newTermListSerializer(), $serializerFactory->newStatementListSerializer()); }, Def::PREFETCHING_TERM_LOOKUP_CALLBACK=> static function() { return new NullPrefetchingTermLookup(); }, DEF::LUA_ENTITY_MODULE=> 'mw.wikibase.lexeme.entity.sense',],]