Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Serializers\ItemSerializer Class Reference

Package private. More...

+ Inheritance diagram for Wikibase\DataModel\Serializers\ItemSerializer:
+ Collaboration diagram for Wikibase\DataModel\Serializers\ItemSerializer:

Public Member Functions

 __construct (TermListSerializer $termListSerializer, AliasGroupListSerializer $aliasGroupListSerializer, StatementListSerializer $statementListSerializer, SiteLinkSerializer $siteLinkSerializer, bool $useObjectsForEmptyMaps)
 
 isSerializerFor ( $object)
 
 serialize ( $object)
 

Private Member Functions

 getSerialized (Item $item)
 
 addIdToSerialization (Item $item, array &$serialization)
 
 addTermsToSerialization (Item $item, array &$serialization)
 
 addStatementListToSerialization (Item $item, array &$serialization)
 
 addSiteLinksToSerialization (Item $item, array &$serialization)
 

Private Attributes

TermListSerializer $termListSerializer
 
AliasGroupListSerializer $aliasGroupListSerializer
 
StatementListSerializer $statementListSerializer
 
SiteLinkListSerializer $siteLinkListSerializer
 

Detailed Description

Package private.

Author
Thomas Pellissier Tanon
Jan Zerebecki < jan.w.nosp@m.ikim.nosp@m.edia@.nosp@m.zere.nosp@m.becki.nosp@m..de >
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\ItemSerializer::__construct ( TermListSerializer $termListSerializer,
AliasGroupListSerializer $aliasGroupListSerializer,
StatementListSerializer $statementListSerializer,
SiteLinkSerializer $siteLinkSerializer,
bool $useObjectsForEmptyMaps )

Member Function Documentation

◆ addIdToSerialization()

Wikibase\DataModel\Serializers\ItemSerializer::addIdToSerialization ( Item $item,
array & $serialization )
private

◆ addSiteLinksToSerialization()

Wikibase\DataModel\Serializers\ItemSerializer::addSiteLinksToSerialization ( Item $item,
array & $serialization )
private

◆ addStatementListToSerialization()

Wikibase\DataModel\Serializers\ItemSerializer::addStatementListToSerialization ( Item $item,
array & $serialization )
private

◆ addTermsToSerialization()

Wikibase\DataModel\Serializers\ItemSerializer::addTermsToSerialization ( Item $item,
array & $serialization )
private

◆ getSerialized()

Wikibase\DataModel\Serializers\ItemSerializer::getSerialized ( Item $item)
private

◆ isSerializerFor()

Wikibase\DataModel\Serializers\ItemSerializer::isSerializerFor ( $object)
See also
Serializer::isSerializerFor
Parameters
mixed$object
Returns
bool

◆ serialize()

Wikibase\DataModel\Serializers\ItemSerializer::serialize ( $object)
See also
Serializer::serialize
Parameters
Item$object
Exceptions
SerializationException
Returns
array

Member Data Documentation

◆ $aliasGroupListSerializer

AliasGroupListSerializer Wikibase\DataModel\Serializers\ItemSerializer::$aliasGroupListSerializer
private

◆ $siteLinkListSerializer

SiteLinkListSerializer Wikibase\DataModel\Serializers\ItemSerializer::$siteLinkListSerializer
private

◆ $statementListSerializer

StatementListSerializer Wikibase\DataModel\Serializers\ItemSerializer::$statementListSerializer
private

◆ $termListSerializer

TermListSerializer Wikibase\DataModel\Serializers\ItemSerializer::$termListSerializer
private

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