Special page for setting the sitepage of a Wikibase entity.
More...
|
| __construct (array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory, SiteLookup $siteLookup, SiteLinkTargetProvider $siteLinkTargetProvider, array $siteLinkGroups, array $badgeItems, LanguageFallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, SiteLinkChangeOpFactory $siteLinkChangeOpFactory) |
|
| doesWrites () |
|
| __construct ( $title, array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory) |
|
| execute ( $subPage) |
|
| __construct ( $title, $restriction, array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory) |
|
| __construct ( $name='', $restriction='', $listed=true) |
|
| getDescription () |
|
| setHeaders () |
|
Special page for setting the sitepage of a Wikibase entity.
- Copyright
- GPL-2.0-or-later
- Author
- Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@goog.nosp@m.lema.nosp@m.il.co.nosp@m.m >
◆ __construct()
Wikibase\Repo\Specials\SpecialSetSiteLink::__construct |
( |
array |
$tags, |
|
|
SpecialPageCopyrightView |
$copyrightView, |
|
|
SummaryFormatter |
$summaryFormatter, |
|
|
EntityTitleLookup |
$entityTitleLookup, |
|
|
MediawikiEditEntityFactory |
$editEntityFactory, |
|
|
SiteLookup |
$siteLookup, |
|
|
SiteLinkTargetProvider |
$siteLinkTargetProvider, |
|
|
array |
$siteLinkGroups, |
|
|
array |
$badgeItems, |
|
|
LanguageFallbackLabelDescriptionLookupFactory |
$labelDescriptionLookupFactory, |
|
|
SiteLinkChangeOpFactory |
$siteLinkChangeOpFactory |
|
) |
| |
- Parameters
-
string[] | $tags | List of tags to add to edits |
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 |
( |
| ) |
|
◆ factory()
◆ 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 |
◆ 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: