Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory Class Reference

Factory for ChangeOps that modify SiteLinks. More...

Public Member Functions

 __construct (array $allowedBadgeItemIds)
 
 newSetSiteLinkOp ( $siteId, $pageName, array $badges=null)
 
 newRemoveSiteLinkOp ( $siteId)
 

Private Member Functions

 validateBadges (array $badges)
 

Private Attributes

 $allowedBadgeItemIds
 

Detailed Description

Factory for ChangeOps that modify SiteLinks.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory::__construct ( array  $allowedBadgeItemIds)
Parameters
string[]$allowedBadgeItemIds

Member Function Documentation

◆ newRemoveSiteLinkOp()

Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory::newRemoveSiteLinkOp (   $siteId)
Parameters
string$siteId
Exceptions
InvalidArgumentException
Returns
ChangeOp

◆ newSetSiteLinkOp()

Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory::newSetSiteLinkOp (   $siteId,
  $pageName,
array  $badges = null 
)
Parameters
string$siteId
string$pageName
ItemId[] | null$badges
Exceptions
InvalidArgumentException
Returns
ChangeOp

◆ validateBadges()

Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory::validateBadges ( array  $badges)
private
Parameters
ItemId[]$badges
Exceptions
InvalidArgumentException
Returns
ItemId[]

Member Data Documentation

◆ $allowedBadgeItemIds

Wikibase\Repo\ChangeOp\SiteLinkChangeOpFactory::$allowedBadgeItemIds
private

The documentation for this class was generated from the following file: