Special page for setting the sitepage of a Wikibase entity.
More...
|
| __construct (SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory, SiteLookup $siteLookup, SiteLinkTargetProvider $siteLinkTargetProvider, array $siteLinkGroups, array $badgeItems, LanguageFallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, SiteLinkChangeOpFactory $siteLinkChangeOpFactory) |
|
| doesWrites () |
|
| __construct ( $title, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory) |
|
| execute ( $subPage) |
|
| __construct ( $title, $restriction, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory) |
|
| __construct ( $name='', $restriction='', $listed=true) |
|
| getDescription () |
|
| setHeaders () |
|
|
| isValidSiteId ( $siteId) |
| Checks if the site id is valid.
|
|
| getSiteLink (?Item $item, $siteId) |
| Returning the site page of the entity.
|
|
| getBadges (?Item $item, $siteId) |
| Returning the badges of the entity.
|
|
| parseBadges (array $badges, Status $status) |
| Validates badges from params and turns them into an array of ItemIds.
|
|
| setSiteLink (EntityDocument $item, $siteId, $pageName, array $badgeIds, Summary &$summary=null) |
| Setting the sitepage of the entity.
|
|
◆ __construct()
- Parameters
-
SpecialPageCopyrightView | $copyrightView | |
SummaryFormatter | $summaryFormatter | |
EntityTitleLookup | $entityTitleLookup | |
MediawikiEditEntityFactory | $editEntityFactory | |
SiteLookup | $siteLookup | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
string[] | $siteLinkGroups | |
string[] | $badgeItems | |
LanguageFallbackLabelDescriptionLookupFactory | $labelDescriptionLookupFactory | |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory | |
◆ doesWrites()
Wikibase\Repo\Specials\SpecialSetSiteLink::doesWrites |
( |
| ) |
|
◆ getBadges()
Wikibase\Repo\Specials\SpecialSetSiteLink::getBadges |
( |
?Item |
$item, |
|
|
|
$siteId |
|
) |
| |
|
private |
Returning the badges of the entity.
- Parameters
-
Item | null | $item | |
string | $siteId | |
- Exceptions
-
- Returns
- string[]
◆ getForm()
Wikibase\Repo\Specials\SpecialSetSiteLink::getForm |
( |
EntityDocument |
$entity = null | ) |
|
|
protected |
◆ getSiteLink()
Wikibase\Repo\Specials\SpecialSetSiteLink::getSiteLink |
( |
?Item |
$item, |
|
|
|
$siteId |
|
) |
| |
|
private |
Returning the site page of the entity.
- Parameters
-
Item | null | $item | |
string | $siteId | |
- Exceptions
-
- Returns
- string
◆ isValidSiteId()
Wikibase\Repo\Specials\SpecialSetSiteLink::isValidSiteId |
( |
|
$siteId | ) |
|
|
private |
Checks if the site id is valid.
- Parameters
-
- Returns
- bool
◆ modifyEntity()
Wikibase\Repo\Specials\SpecialSetSiteLink::modifyEntity |
( |
EntityDocument |
$entity | ) |
|
|
protected |
◆ newFromGlobalState()
static Wikibase\Repo\Specials\SpecialSetSiteLink::newFromGlobalState |
( |
| ) |
|
|
static |
◆ parseBadges()
Wikibase\Repo\Specials\SpecialSetSiteLink::parseBadges |
( |
array |
$badges, |
|
|
Status |
$status |
|
) |
| |
|
private |
Validates badges from params and turns them into an array of ItemIds.
- Parameters
-
string[] | $badges | |
Status | $status | |
- Returns
- ItemId[]|boolean
◆ processArguments()
Wikibase\Repo\Specials\SpecialSetSiteLink::processArguments |
( |
|
$subPage | ) |
|
|
protected |
◆ setSiteLink()
Wikibase\Repo\Specials\SpecialSetSiteLink::setSiteLink |
( |
EntityDocument |
$item, |
|
|
|
$siteId, |
|
|
|
$pageName, |
|
|
array |
$badgeIds, |
|
|
Summary & |
$summary = null |
|
) |
| |
|
private |
Setting the sitepage of the entity.
- Parameters
-
EntityDocument | $item | |
string | $siteId | |
string | $pageName | |
string[] | $badgeIds | |
Summary | null | &$summary | The summary for this edit will be saved here. |
- Exceptions
-
- Returns
- Status
◆ validateInput()
Wikibase\Repo\Specials\SpecialSetSiteLink::validateInput |
( |
| ) |
|
|
protected |
◆ $badgeItems
Wikibase\Repo\Specials\SpecialSetSiteLink::$badgeItems |
|
private |
◆ $badges
Wikibase\Repo\Specials\SpecialSetSiteLink::$badges |
|
private |
◆ $labelDescriptionLookupFactory
Wikibase\Repo\Specials\SpecialSetSiteLink::$labelDescriptionLookupFactory |
|
private |
◆ $page
Wikibase\Repo\Specials\SpecialSetSiteLink::$page |
|
private |
◆ $site
Wikibase\Repo\Specials\SpecialSetSiteLink::$site |
|
private |
◆ $siteLinkChangeOpFactory
Wikibase\Repo\Specials\SpecialSetSiteLink::$siteLinkChangeOpFactory |
|
private |
◆ $siteLinkGroups
Wikibase\Repo\Specials\SpecialSetSiteLink::$siteLinkGroups |
|
private |
◆ $siteLinkTargetProvider
Wikibase\Repo\Specials\SpecialSetSiteLink::$siteLinkTargetProvider |
|
private |
◆ $siteLookup
Wikibase\Repo\Specials\SpecialSetSiteLink::$siteLookup |
|
private |
The documentation for this class was generated from the following file: