Wikibase
MediaWiki Wikibase extension
|
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( $repositoryName, $uniquePart) { return ItemId::newFromRepositoryAndNumber( $repositoryName, $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=> PropertyId::PATTERN, Def::ENTITY_ID_BUILDER=> function( $serialization) { return new PropertyId( $serialization);}, Def::ENTITY_ID_COMPOSER_CALLBACK=> function( $repositoryName, $uniquePart) { return PropertyId::newFromRepositoryAndNumber( $repositoryName, $uniquePart);}, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new PropertyDiffer();}, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new PropertyPatcher();},]] | |
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($repositoryName, $uniquePart) { return ItemId::newFromRepositoryAndNumber($repositoryName, $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=> PropertyId::PATTERN, Def::ENTITY_ID_BUILDER=> function($serialization) { return new PropertyId($serialization); }, Def::ENTITY_ID_COMPOSER_CALLBACK=> function($repositoryName, $uniquePart) { return PropertyId::newFromRepositoryAndNumber($repositoryName, $uniquePart); }, Def::ENTITY_DIFFER_STRATEGY_BUILDER=> function() { return new PropertyDiffer(); }, Def::ENTITY_PATCHER_STRATEGY_BUILDER=> function() { return new PropertyPatcher(); },]] |