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

Variables

 return [ 'item'=>[Def::SERIALIZER_FACTORY_CALLBACK=> function(SerializerFactory $serializerFactory) { return $serializerFactory->newItemSerializer();}, Def::DESERIALIZER_FACTORY_CALLBACK=> function(DeserializerFactory $deserializerFactory) { return $deserializerFactory->newItemDeserializer();}, Def::ENTITY_ID_PATTERN=> ItemId::PATTERN, Def::ENTITY_ID_BUILDER=> function( $serialization) { return new ItemId( $serialization);}, Def::ENTITY_ID_COMPOSER_CALLBACK=> function( $uniquePart) { return new ItemId( 'Q' . $uniquePart);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new ItemDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new ItemPatcher();},], 'property'=>[Def::SERIALIZER_FACTORY_CALLBACK=> function(SerializerFactory $serializerFactory) { return $serializerFactory->newPropertySerializer();}, Def::DESERIALIZER_FACTORY_CALLBACK=> function(DeserializerFactory $deserializerFactory) { return $deserializerFactory->newPropertyDeserializer();}, Def::ENTITY_ID_PATTERN=> NumericPropertyId::PATTERN, Def::ENTITY_ID_BUILDER=> function( $serialization) { return new NumericPropertyId( $serialization);}, Def::ENTITY_ID_COMPOSER_CALLBACK=> function( $uniquePart) { return new NumericPropertyId( 'P' . $uniquePart);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new PropertyDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new PropertyPatcher();},],]
 

Variable Documentation

◆ return

return['item'=>[ Def::SERIALIZER_FACTORY_CALLBACK=> function(SerializerFactory $serializerFactory) { return $serializerFactory->newItemSerializer(); }, Def::DESERIALIZER_FACTORY_CALLBACK=> function(DeserializerFactory $deserializerFactory) { return $deserializerFactory->newItemDeserializer(); }, Def::ENTITY_ID_PATTERN=> ItemId::PATTERN, Def::ENTITY_ID_BUILDER=> function($serialization) { return new ItemId($serialization); }, Def::ENTITY_ID_COMPOSER_CALLBACK=> function($uniquePart) { return new ItemId('Q' . $uniquePart); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new ItemDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new ItemPatcher(); },], 'property'=>[ Def::SERIALIZER_FACTORY_CALLBACK=> function(SerializerFactory $serializerFactory) { return $serializerFactory->newPropertySerializer(); }, Def::DESERIALIZER_FACTORY_CALLBACK=> function(DeserializerFactory $deserializerFactory) { return $deserializerFactory->newPropertyDeserializer(); }, Def::ENTITY_ID_PATTERN=> NumericPropertyId::PATTERN, Def::ENTITY_ID_BUILDER=> function($serialization) { return new NumericPropertyId($serialization); }, Def::ENTITY_ID_COMPOSER_CALLBACK=> function($uniquePart) { return new NumericPropertyId('P' . $uniquePart); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new PropertyDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new PropertyPatcher(); },],]