Wikibase
MediaWiki Wikibase extension
|
Base class for snaks. More...
Public Member Functions | |
__construct ( $propertyId) | |
Support for passing in an EntityId instance that is not a PropertyId instance has been deprecated since 0.5. | |
getPropertyId () | |
getHash () | |
getSerializationForHash () | |
The serialization to use for hashing, for compatibility reasons this is equivalent to the old (pre 7.4) PHP serialization. | |
equals ( $target) | |
serialize () | |
unserialize ( $serialized) | |
__serialize () | |
__unserialize (array $serialized) | |
Public Member Functions inherited from Wikibase\DataModel\Snak\Snak | |
getType () | |
Returns a string that can be used to identify the type of snak. | |
Protected Attributes | |
$propertyId | |
Base class for snaks.
See https://www.mediawiki.org/wiki/Wikibase/DataModel#Snaks
Wikibase\DataModel\Snak\SnakObject::__construct | ( | $propertyId | ) |
Support for passing in an EntityId instance that is not a PropertyId instance has been deprecated since 0.5.
PropertyId | EntityId | int | $propertyId |
InvalidArgumentException |
Wikibase\DataModel\Snak\SnakObject::__serialize | ( | ) |
Implements Wikibase\DataModel\Snak\Snak.
Reimplemented in Wikibase\DataModel\Snak\PropertyValueSnak.
Wikibase\DataModel\Snak\SnakObject::__unserialize | ( | array | $serialized | ) |
Implements Wikibase\DataModel\Snak\Snak.
Reimplemented in Wikibase\DataModel\Snak\PropertyValueSnak.
Wikibase\DataModel\Snak\SnakObject::equals | ( | $target | ) |
Wikibase\DataModel\Snak\SnakObject::getHash | ( | ) |
Implements Wikibase\DataModel\Snak\Snak.
Wikibase\DataModel\Snak\SnakObject::getPropertyId | ( | ) |
Implements Wikibase\DataModel\PropertyIdProvider.
Wikibase\DataModel\Snak\SnakObject::getSerializationForHash | ( | ) |
The serialization to use for hashing, for compatibility reasons this is equivalent to the old (pre 7.4) PHP serialization.
Reimplemented in Wikibase\DataModel\Snak\PropertyValueSnak.
Wikibase\DataModel\Snak\SnakObject::serialize | ( | ) |
Reimplemented in Wikibase\DataModel\Snak\PropertyValueSnak.
Wikibase\DataModel\Snak\SnakObject::unserialize | ( | $serialized | ) |
string | $serialized |
Reimplemented in Wikibase\DataModel\Snak\PropertyValueSnak.
|
protected |