Wikibase
MediaWiki Wikibase extension
|
Class for sitelink change operation. More...
Public Member Functions | |
__construct (string $siteId, string $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, string &$action, array &$commentArgs) | |
isSiteLinkNewOrPageNameChanged (SiteLinkList $siteLinks) | |
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 | ( | string | $siteId, |
string | $pageName, | ||
array | $badges = null ) |
string | $siteId | |
string | $pageName | |
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 |
|
private |
Wikibase\Repo\ChangeOp\ChangeOpSiteLink::validate | ( | EntityDocument | $entity | ) |
EntityDocument | $entity |
InvalidArgumentException |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
|
private |
|
private |
|
private |