Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataAccess\GenericServices Class Reference

A container/factory of services which don't rely/require repository-specific configuration. More...

Public Member Functions

 __construct (EntityTypeDefinitions $entityTypeDefinitions, array $entityNamespaces, array $entitySlots=[])
 
 getEntityNamespaceLookup ()
 
 getFullEntitySerializer ()
 
 getCompactEntitySerializer ()
 
 getStorageEntitySerializer ()
 Returns the entity serializer that generates serialization that is used in the storage layer.
 
 getBaseDataModelSerializerFactory ()
 
 getCompactBaseDataModelSerializerFactory ()
 
 getLanguageFallbackChainFactory ()
 
 getStringNormalizer ()
 

Private Attributes

 $entityNamespaces
 
 $entityNamespaceLookup
 
 $entityTypeDefinitions
 
 $entitySerializer
 
 $compactEntitySerializer
 
 $storageEntitySerializer
 
 $languageFallbackChainFactory
 
 $stringNormalizer
 
 $entitySlots
 

Detailed Description

A container/factory of services which don't rely/require repository-specific configuration.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataAccess\GenericServices::__construct ( EntityTypeDefinitions  $entityTypeDefinitions,
array  $entityNamespaces,
array  $entitySlots = [] 
)
Parameters
EntityTypeDefinitions$entityTypeDefinitions
int[]$entityNamespaces
string[]$entitySlots

Member Function Documentation

◆ getBaseDataModelSerializerFactory()

Wikibase\DataAccess\GenericServices::getBaseDataModelSerializerFactory ( )
Returns
SerializerFactory Factory creating serializers that generate the full (expanded) serialization. The factory returned has the knowledge about items, properties, and the elements they are made of, but not about other entity types.

◆ getCompactBaseDataModelSerializerFactory()

Wikibase\DataAccess\GenericServices::getCompactBaseDataModelSerializerFactory ( )
Returns
SerializerFactory Factory creating serializers that generate the most compact serialization. The factory returned has the knowledge about items, properties, and the elements they are made of, but not about other entity types.

◆ getCompactEntitySerializer()

Wikibase\DataAccess\GenericServices::getCompactEntitySerializer ( )
Returns
Serializer Entity serializer that that generates the most compact serialization

◆ getEntityNamespaceLookup()

Wikibase\DataAccess\GenericServices::getEntityNamespaceLookup ( )
Returns
EntityNamespaceLookup

◆ getFullEntitySerializer()

Wikibase\DataAccess\GenericServices::getFullEntitySerializer ( )
Returns
Serializer Entity serializer that generates the full (expanded) serialization.

◆ getLanguageFallbackChainFactory()

Wikibase\DataAccess\GenericServices::getLanguageFallbackChainFactory ( )
Returns
LanguageFallbackChainFactory

◆ getStorageEntitySerializer()

Wikibase\DataAccess\GenericServices::getStorageEntitySerializer ( )

Returns the entity serializer that generates serialization that is used in the storage layer.

Returns
Serializer

◆ getStringNormalizer()

Wikibase\DataAccess\GenericServices::getStringNormalizer ( )
Returns
StringNormalizer

Member Data Documentation

◆ $compactEntitySerializer

Wikibase\DataAccess\GenericServices::$compactEntitySerializer
private

◆ $entityNamespaceLookup

Wikibase\DataAccess\GenericServices::$entityNamespaceLookup
private

◆ $entityNamespaces

Wikibase\DataAccess\GenericServices::$entityNamespaces
private

◆ $entitySerializer

Wikibase\DataAccess\GenericServices::$entitySerializer
private

◆ $entitySlots

Wikibase\DataAccess\GenericServices::$entitySlots
private

◆ $entityTypeDefinitions

Wikibase\DataAccess\GenericServices::$entityTypeDefinitions
private

◆ $languageFallbackChainFactory

Wikibase\DataAccess\GenericServices::$languageFallbackChainFactory
private

◆ $storageEntitySerializer

Wikibase\DataAccess\GenericServices::$storageEntitySerializer
private

◆ $stringNormalizer

Wikibase\DataAccess\GenericServices::$stringNormalizer
private

The documentation for this class was generated from the following file: