Deserializer for site link change requests.
More...
Deserializer for site link change requests.
- See also
- Change op serializations for documentation on site link change request format.
- Copyright
- GPL-2.0-or-later
◆ __construct()
- Parameters
-
SiteLinkBadgeChangeOpSerializationValidator | $badgeChangeOpSerializationValidator | |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory | |
SiteLinkPageNormalizer | $siteLinkPageNormalizer | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
EntityIdParser | $entityIdParser | |
EntityLookup | $entityLookup | |
StringNormalizer | $stringNormalizer | |
string[] | $siteLinkGroups | |
◆ assertArray()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::assertArray |
( |
| $value, |
|
|
| $message ) |
|
private |
- Parameters
-
mixed | $value | |
string | $message | -assert array $value |
◆ assertString()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::assertString |
( |
| $value, |
|
|
| $message ) |
|
private |
- Parameters
-
mixed | $value | |
string | $message | -assert string $value |
◆ assertType()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::assertType |
( |
| $type, |
|
|
| $value, |
|
|
| $message ) |
|
private |
- Parameters
-
string | $type | |
mixed | $value | |
string | $message | |
◆ createEntityChangeOp()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::createEntityChangeOp |
( |
array | $changeRequest | ) |
|
◆ getBadgeItemIds()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::getBadgeItemIds |
( |
array | $badgeSerialization | ) |
|
|
private |
- Parameters
-
string[] | $badgeSerialization | |
- Returns
- ItemId[]
◆ getLinkTitleFromExistingSiteLink()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::getLinkTitleFromExistingSiteLink |
( |
string | $id, |
|
|
string | $linkSite ) |
|
private |
◆ throwException()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::throwException |
( |
| $message, |
|
|
| $errorCode ) |
|
private |
- Parameters
-
string | $message | |
string | $errorCode | |
- Returns
- never
- Exceptions
-
ChangeOpDeserializationException | |
◆ validateSiteLinkSerialization()
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::validateSiteLinkSerialization |
( |
| $serialization, |
|
|
| $siteCode, |
|
|
?SiteList | $sites ) |
|
private |
- Parameters
-
array | $serialization | Site link serialization array |
string | $siteCode | |
SiteList | null | $sites | Valid sites. Null for skipping site validity check. |
- Exceptions
-
ChangeOpDeserializationException | |
◆ $badgeChangeOpSerializationValidator
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$badgeChangeOpSerializationValidator |
|
private |
◆ $entityIdParser
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$entityIdParser |
|
private |
◆ $entityLookup
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$entityLookup |
|
private |
◆ $siteLinkChangeOpFactory
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$siteLinkChangeOpFactory |
|
private |
◆ $siteLinkGroups
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$siteLinkGroups |
|
private |
◆ $siteLinkPageNormalizer
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$siteLinkPageNormalizer |
|
private |
◆ $siteLinkTargetProvider
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$siteLinkTargetProvider |
|
private |
◆ $stringNormalizer
Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer::$stringNormalizer |
|
private |
The documentation for this class was generated from the following file: