Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Serializer\ClientSerializer Class Reference
+ Inheritance diagram for Wikibase\Client\Serializer\ClientSerializer:
+ Collaboration diagram for Wikibase\Client\Serializer\ClientSerializer:

Public Member Functions

 __construct (PropertyDataTypeLookup $dataTypeLookup)
 

Protected Member Functions

 omitEmptyArrays (array $serialization)
 
 injectSerializationWithDataTypes (array $serialization, $pathPrefix)
 

Private Member Functions

 getArrayWithDataTypesInGroupedSnakListAtPath (array $array, $path)
 

Private Attributes

 $dataTypeLookup
 
 $modifier
 
 $callbackFactory
 

Detailed Description

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Serializer\ClientSerializer::__construct ( PropertyDataTypeLookup  $dataTypeLookup)

Member Function Documentation

◆ getArrayWithDataTypesInGroupedSnakListAtPath()

Wikibase\Client\Serializer\ClientSerializer::getArrayWithDataTypesInGroupedSnakListAtPath ( array  $array,
  $path 
)
private
Parameters
array$array
string$path
Todo:
FIXME duplicated / similar code in Repo ResultBuilder
Returns
array

◆ injectSerializationWithDataTypes()

Wikibase\Client\Serializer\ClientSerializer::injectSerializationWithDataTypes ( array  $serialization,
  $pathPrefix 
)
protected
Parameters
array$serialization
string$pathPrefix
Todo:
FIXME duplicated / similar code in Repo ResultBuilder
Returns
array

◆ omitEmptyArrays()

Wikibase\Client\Serializer\ClientSerializer::omitEmptyArrays ( array  $serialization)
protected
Parameters
array$serialization
Returns
array

Member Data Documentation

◆ $callbackFactory

Wikibase\Client\Serializer\ClientSerializer::$callbackFactory
private

◆ $dataTypeLookup

Wikibase\Client\Serializer\ClientSerializer::$dataTypeLookup
private

◆ $modifier

Wikibase\Client\Serializer\ClientSerializer::$modifier
private

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