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 (Serializer $termListSerializer, Serializer $aliasGroupListSerializer, Serializer $statementListSerializer, Serializer $siteLinkSerializer, $useObjectsForMaps)
 
 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
 
 $aliasGroupListSerializer
 
 $statementListSerializer
 
 $siteLinkListSerializer
 
 $useObjectsForMaps
 

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 ( Serializer $termListSerializer,
Serializer $aliasGroupListSerializer,
Serializer $statementListSerializer,
Serializer $siteLinkSerializer,
$useObjectsForMaps )
Parameters
Serializer$termListSerializer
Serializer$aliasGroupListSerializer
Serializer$statementListSerializer
Serializer$siteLinkSerializer
bool$useObjectsForMaps

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

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

◆ $siteLinkListSerializer

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

◆ $statementListSerializer

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

◆ $termListSerializer

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

◆ $useObjectsForMaps

Wikibase\DataModel\Serializers\ItemSerializer::$useObjectsForMaps
private

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