Wikibase
MediaWiki Wikibase extension
|
Deserializer for site link change requests. More...
Public Member Functions | |
__construct (SiteLinkBadgeChangeOpSerializationValidator $badgeChangeOpSerializationValidator, SiteLinkChangeOpFactory $siteLinkChangeOpFactory, SiteLinkTargetProvider $siteLinkTargetProvider, EntityIdParser $entityIdParser, StringNormalizer $stringNormalizer, array $siteLinkGroups) | |
createEntityChangeOp (array $changeRequest) | |
Private Member Functions | |
validateSiteLinkSerialization ( $serialization, $siteCode, SiteList $sites=null) | |
getBadgeItemIds (array $badgeSerialization) | |
throwException ( $message, $errorCode) | |
assertArray ( $value, $message) | |
assertString ( $value, $message) | |
assertType ( $type, $value, $message) | |
Private Attributes | |
$badgeChangeOpSerializationValidator | |
$siteLinkChangeOpFactory | |
$siteLinkTargetProvider | |
$siteLinkGroups | |
$entityIdParser | |
$stringNormalizer | |
Deserializer for site link change requests.
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::__construct | ( | SiteLinkBadgeChangeOpSerializationValidator | $badgeChangeOpSerializationValidator, |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory, | ||
SiteLinkTargetProvider | $siteLinkTargetProvider, | ||
EntityIdParser | $entityIdParser, | ||
StringNormalizer | $stringNormalizer, | ||
array | $siteLinkGroups | ||
) |
SiteLinkBadgeChangeOpSerializationValidator | $badgeChangeOpSerializationValidator | |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
EntityIdParser | $entityIdParser | |
StringNormalizer | $stringNormalizer | |
string[] | $siteLinkGroups |
|
private |
mixed | $value | |
string | $message | -assert array $value |
|
private |
mixed | $value | |
string | $message | -assert string $value |
|
private |
string | $type | |
mixed | $value | |
string | $message |
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::createEntityChangeOp | ( | array | $changeRequest | ) |
array[] | $changeRequest |
ChangeOpDeserializationException |
Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.
|
private |
string[] | $badgeSerialization |
|
private |
string | $message | |
string | $errorCode |
ChangeOpDeserializationException |
|
private |
array | $serialization | Site link serialization array |
string | $siteCode | |
SiteList | null | $sites | Valid sites. Null for skipping site validity check. |
ChangeOpDeserializationException |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |