Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\InternalSerialization\SerializerFactory Class Reference

Public interface of the library for constructing serializers. More...

+ Inheritance diagram for Wikibase\InternalSerialization\SerializerFactory:
+ Collaboration diagram for Wikibase\InternalSerialization\SerializerFactory:

Additional Inherited Members

- Public Member Functions inherited from Wikibase\DataModel\Serializers\SerializerFactory
 __construct (Serializer $dataValueSerializer, $options=0)
 
 newEntitySerializer ()
 
 newItemSerializer ()
 Returns a Serializer that can serialize Item objects.
 
 newPropertySerializer ()
 Returns a Serializer that can serialize Property objects.
 
 newSiteLinkSerializer ()
 Returns a Serializer that can serialize SiteLink objects.
 
 newStatementListSerializer ()
 Returns a Serializer that can serialize StatementList objects.
 
 newStatementSerializer ()
 Returns a Serializer that can serialize Statement objects.
 
 newReferencesSerializer ()
 Returns a Serializer that can serialize ReferenceList objects.
 
 newReferenceSerializer ()
 Returns a Serializer that can serialize Reference objects.
 
 newSnakListSerializer ( $serializeSnaksWithHash=true)
 Returns a Serializer that can serialize SnakList objects.
 
 newSnakSerializer ( $serializeWithHash=true)
 Returns a Serializer that can serialize Snak objects.
 
 newTypedSnakSerializer ( $serializeWithHash=true)
 Returns a Serializer that can serialize TypedSnak objects.
 
 newTermSerializer ()
 Returns a Serializer that can serialize Term objects.
 
 newTermListSerializer ()
 Returns a Serializer that can serialize TermList objects.
 
 newAliasGroupSerializer ()
 Returns a Serializer that can serialize AliasGroup objects.
 
 newAliasGroupListSerializer ()
 Returns a Serializer that can serialize AliasGroupList objects.
 
- Public Attributes inherited from Wikibase\DataModel\Serializers\SerializerFactory
const OPTION_DEFAULT = 0
 
const OPTION_OBJECTS_FOR_MAPS = 1
 
const OPTION_SERIALIZE_MAIN_SNAKS_WITHOUT_HASH = 2
 
const OPTION_SERIALIZE_QUALIFIER_SNAKS_WITHOUT_HASH = 4
 
const OPTION_SERIALIZE_REFERENCE_SNAKS_WITHOUT_HASH = 8
 
const OPTION_SERIALIZE_SNAKS_WITHOUT_HASH = 14
 Omit hashes when serializing snaks.
 
const OPTION_SERIALIZE_USE_OBJECTS_FOR_EMPTY_MAPS = 16
 

Detailed Description

Public interface of the library for constructing serializers.

Direct access to serializers is prohibited, users are only allowed to know about this interface. Also note that the return type of the methods is "Serializer". You are also not allowed to know which concrete implementation is returned.

Since
1.0
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

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