Wikibase
MediaWiki Wikibase extension
|
Class for sitelink change operation. More...
Public Member Functions | |
__construct ( $siteId, $pageName, array $badges=null) | |
apply (EntityDocument $entity, Summary $summary=null) | |
validate (EntityDocument $entity) | |
Public Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase | |
getActions () | |
Private Member Functions | |
badgesAreEmptyAndUnchanged (SiteLinkList $siteLinks) | |
applyBadges (SiteLinkList $siteLinks, &$action, array &$commentArgs) | |
Private Attributes | |
$siteId | |
$pageName | |
$badges | |
Additional Inherited Members | |
Protected Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase | |
updateSummary (?Summary $summary, $action, $language='', $args='') | |
Class for sitelink change operation.
Wikibase\Repo\ChangeOp\ChangeOpSiteLink::__construct | ( | $siteId, | |
$pageName, | |||
array | $badges = null |
||
) |
string | $siteId | |
string | null | $pageName | Null to remove the sitelink (if $badges are also null) |
ItemId[] | null | $badges | Null for no-op |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\ChangeOpSiteLink::apply | ( | EntityDocument | $entity, |
Summary | $summary = null |
||
) |
EntityDocument | $entity | |
Summary | null | $summary |
InvalidArgumentException |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
|
private |
SiteLinkList | $siteLinks | |
string | &$action | |
array | &$commentArgs |
|
private |
SiteLinkList | $siteLinks |
Wikibase\Repo\ChangeOp\ChangeOpSiteLink::validate | ( | EntityDocument | $entity | ) |
EntityDocument | $entity |
InvalidArgumentException |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
|
private |
|
private |
|
private |