Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer Class Reference
+ Inheritance diagram for Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer:
+ Collaboration diagram for Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer:

Public Member Functions

 __construct (Deserializer $idDeserializer, Deserializer $siteLinkListDeserializer, Deserializer $statementDeserializer, Deserializer $fingerprintDeserializer)
 
 deserialize ( $serialization)
 
 isDeserializerFor ( $serialization)
 

Private Member Functions

 getItemId (array $serialization)
 
 getSiteLinkList (array $serialization)
 
 getStatementList (array $serialization)
 
 getStatement (array $claimSerialization)
 
 assertClaimValueIsArray ( $value)
 
 normalizeLegacyClaimKeys (array $serialization)
 
 normalizeStatementSerialization (array $seralization)
 
 getArrayFromKey ( $key, array $serialization)
 

Private Attributes

 $idDeserializer
 
 $siteLinkListDeserializer
 
 $statementDeserializer
 
 $fingerprintDeserializer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::__construct ( Deserializer $idDeserializer,
Deserializer $siteLinkListDeserializer,
Deserializer $statementDeserializer,
Deserializer $fingerprintDeserializer )

Member Function Documentation

◆ assertClaimValueIsArray()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::assertClaimValueIsArray ( $value)
private

◆ deserialize()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::deserialize ( $serialization)
Parameters
array$serialization
Returns
Item
Exceptions
DeserializationException

◆ getArrayFromKey()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::getArrayFromKey ( $key,
array $serialization )
private

◆ getItemId()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::getItemId ( array $serialization)
private
Parameters
array$serialization
Returns
ItemId|null

◆ getSiteLinkList()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::getSiteLinkList ( array $serialization)
private
Parameters
array$serialization
Returns
SiteLinkList|null

◆ getStatement()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::getStatement ( array $claimSerialization)
private
Parameters
array$claimSerialization
Returns
Statement

◆ getStatementList()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::getStatementList ( array $serialization)
private
Parameters
array$serialization
Returns
StatementList

◆ isDeserializerFor()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::isDeserializerFor ( $serialization)
See also
DispatchableDeserializer::isDeserializerFor
Since
2.2
Parameters
mixed$serialization
Returns
bool

◆ normalizeLegacyClaimKeys()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::normalizeLegacyClaimKeys ( array $serialization)
private

◆ normalizeStatementSerialization()

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::normalizeStatementSerialization ( array $seralization)
private

Member Data Documentation

◆ $fingerprintDeserializer

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::$fingerprintDeserializer
private

◆ $idDeserializer

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::$idDeserializer
private

◆ $siteLinkListDeserializer

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::$siteLinkListDeserializer
private

◆ $statementDeserializer

Wikibase\InternalSerialization\Deserializers\LegacyItemDeserializer::$statementDeserializer
private

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