Factory for constructing Serializer objects that can serialize WikibaseDataModel objects.
More...
Factory for constructing Serializer objects that can serialize WikibaseDataModel objects.
- Since
- 0.1
- Copyright
- GPL-2.0-or-later
- Author
- Thomas Pellissier Tanon
-
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Addshore
◆ __construct()
Wikibase\DataModel\Serializers\SerializerFactory::__construct |
( |
Serializer |
$dataValueSerializer, |
|
|
|
$options = 0 |
|
) |
| |
- Parameters
-
Serializer | $dataValueSerializer | serializer for DataValue objects |
int | $options | set multiple with bitwise or |
- Exceptions
-
◆ newAliasGroupListSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newAliasGroupListSerializer |
( |
| ) |
|
Returns a Serializer that can serialize AliasGroupList objects.
- Since
- 1.5
- Returns
- Serializer
◆ newAliasGroupSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newAliasGroupSerializer |
( |
| ) |
|
Returns a Serializer that can serialize AliasGroup objects.
- Since
- 1.6
- Returns
- Serializer
◆ newEntitySerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newEntitySerializer |
( |
| ) |
|
- Returns
- DispatchableSerializer A serializer that can only serialize Item and Property objects, but no other entity types. In contexts with custom entity types other than items and properties this is not what you want. If in doubt, favor a custom
DispatchingSerializer
containing the exact entity serializers you need.
◆ newItemSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newItemSerializer |
( |
| ) |
|
Returns a Serializer that can serialize Item objects.
- Since
- 2.1
- Returns
- ItemSerializer
◆ newPropertySerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newPropertySerializer |
( |
| ) |
|
Returns a Serializer that can serialize Property objects.
- Since
- 2.1
- Returns
- DispatchableSerializer
◆ newReferenceSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newReferenceSerializer |
( |
| ) |
|
Returns a Serializer that can serialize Reference objects.
- Returns
- Serializer
◆ newReferencesSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newReferencesSerializer |
( |
| ) |
|
Returns a Serializer that can serialize ReferenceList objects.
- Returns
- Serializer
◆ newSiteLinkSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newSiteLinkSerializer |
( |
| ) |
|
Returns a Serializer that can serialize SiteLink objects.
- Returns
- Serializer
◆ newSnakListSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newSnakListSerializer |
( |
|
$serializeSnaksWithHash = true | ) |
|
Returns a Serializer that can serialize SnakList objects.
- Parameters
-
bool | $serializeSnaksWithHash | |
- Since
- 1.4
- Returns
- Serializer
◆ newSnakSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newSnakSerializer |
( |
|
$serializeWithHash = true | ) |
|
Returns a Serializer that can serialize Snak objects.
- Parameters
-
- Returns
- Serializer
◆ newStatementListSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newStatementListSerializer |
( |
| ) |
|
Returns a Serializer that can serialize StatementList objects.
- Since
- 1.4
- Returns
- Serializer
◆ newStatementSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newStatementSerializer |
( |
| ) |
|
Returns a Serializer that can serialize Statement objects.
- Since
- 1.4
- Returns
- DispatchableSerializer
◆ newTermListSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newTermListSerializer |
( |
| ) |
|
Returns a Serializer that can serialize TermList objects.
- Since
- 1.5
- Returns
- Serializer
◆ newTermSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newTermSerializer |
( |
| ) |
|
Returns a Serializer that can serialize Term objects.
- Since
- 1.5
- Returns
- Serializer
◆ newTypedSnakSerializer()
Wikibase\DataModel\Serializers\SerializerFactory::newTypedSnakSerializer |
( |
|
$serializeWithHash = true | ) |
|
Returns a Serializer that can serialize TypedSnak objects.
- Parameters
-
- Since
- 1.3
- Returns
- Serializer
◆ shouldSerializeMainSnaksWithHash()
Wikibase\DataModel\Serializers\SerializerFactory::shouldSerializeMainSnaksWithHash |
( |
| ) |
|
|
private |
◆ shouldSerializeQualifierSnaksWithHash()
Wikibase\DataModel\Serializers\SerializerFactory::shouldSerializeQualifierSnaksWithHash |
( |
| ) |
|
|
private |
◆ shouldSerializeReferenceSnaksWithHash()
Wikibase\DataModel\Serializers\SerializerFactory::shouldSerializeReferenceSnaksWithHash |
( |
| ) |
|
|
private |
◆ shouldUseObjectsForMaps()
Wikibase\DataModel\Serializers\SerializerFactory::shouldUseObjectsForMaps |
( |
| ) |
|
|
private |
◆ $dataValueSerializer
Wikibase\DataModel\Serializers\SerializerFactory::$dataValueSerializer |
|
private |
◆ $options
Wikibase\DataModel\Serializers\SerializerFactory::$options |
|
private |
◆ OPTION_DEFAULT
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_DEFAULT = 0 |
◆ OPTION_OBJECTS_FOR_MAPS
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_OBJECTS_FOR_MAPS = 1 |
◆ OPTION_SERIALIZE_MAIN_SNAKS_WITHOUT_HASH
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_SERIALIZE_MAIN_SNAKS_WITHOUT_HASH = 2 |
- Since
- 1.7.0
- Deprecated:
- since 2.5 use OPTION_SERIALIZE_SNAKS_WITHOUT_HASH
◆ OPTION_SERIALIZE_QUALIFIER_SNAKS_WITHOUT_HASH
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_SERIALIZE_QUALIFIER_SNAKS_WITHOUT_HASH = 4 |
- Since
- 1.7.0
- Deprecated:
- since 2.5 use OPTION_SERIALIZE_SNAKS_WITHOUT_HASH
◆ OPTION_SERIALIZE_REFERENCE_SNAKS_WITHOUT_HASH
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_SERIALIZE_REFERENCE_SNAKS_WITHOUT_HASH = 8 |
- Since
- 1.7.0
- Deprecated:
- since 2.5 use OPTION_SERIALIZE_SNAKS_WITHOUT_HASH
◆ OPTION_SERIALIZE_SNAKS_WITHOUT_HASH
const Wikibase\DataModel\Serializers\SerializerFactory::OPTION_SERIALIZE_SNAKS_WITHOUT_HASH = 14 |
Omit hashes when serializing snaks.
- Since
- 2.5.0
The documentation for this class was generated from the following file: