Wikibase
MediaWiki Wikibase extension
|
Special page for setting the sitepage of a Wikibase entity. More...
Public Member Functions | |
__construct (array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediaWikiEditEntityFactory $editEntityFactory, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, SiteLinkPageNormalizer $siteLinkPageNormalizer, SiteLinkTargetProvider $siteLinkTargetProvider, array $siteLinkGroups, array $badgeItems, FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, SiteLinkChangeOpFactory $siteLinkChangeOpFactory) | |
doesWrites () | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialModifyEntity | |
__construct ( $title, array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediaWikiEditEntityFactory $editEntityFactory, AnonymousEditWarningBuilder $anonymousEditWarningBuilder) | |
execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
__construct ( $title, $restriction, array $tags, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediaWikiEditEntityFactory $editEntityFactory) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
__construct ( $name='', $restriction='', $listed=true) | |
getDescription () | |
setHeaders () | |
Static Public Member Functions | |
static | factory (AnonymousEditWarningBuilder $anonymousEditWarningBuilder, ChangeOpFactoryProvider $changeOpFactoryProvider, MediaWikiEditEntityFactory $editEntityFactory, EntityTitleLookup $entityTitleLookup, FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, SettingsArray $repoSettings, SiteLinkPageNormalizer $siteLinkPageNormalizer, SiteLinkTargetProvider $siteLinkTargetProvider, SummaryFormatter $summaryFormatter) |
Protected Member Functions | |
processArguments ( $subPage) | |
validateInput () | |
modifyEntity (EntityDocument $entity) | |
getForm (EntityDocument $entity=null) | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialModifyEntity | |
getEntityId () | |
Returns the ID of the Entity being modified. | |
getBaseRevision () | |
Returns the base revision. | |
getLatestRevision () | |
Returns the current revision. | |
getEntityForModification () | |
Returns the EntityDocument that is to be modified by code in this class (or subclasses). | |
getEntityForDisplay () | |
Returns the EntityDocument that is to be shown by code in this class (or subclasses). | |
getFormElements (EntityDocument $entity=null) | |
isModificationRequested () | |
Whether the current request is a request for modification (as opposed to a request for showing the input form). | |
applyChangeOp (ChangeOp $changeOp, EntityDocument $entity, Summary $summary=null) | |
Applies the given ChangeOp to the given Entity. | |
getSubmitKey (EntityDocument $entity=null) | |
showCopyrightNotice (EntityDocument $entity=null) | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
prepareEditEntity (EntityId $id=null, $baseRev=0) | |
getEditEntity () | |
Returns the EditEntity interactor. | |
parseEntityId ( $rawId) | |
Parses an entity id. | |
parseItemId ( $rawId) | |
Parses an item id. | |
getEntityTitle (EntityId $id) | |
saveEntity (EntityDocument $entity, FormatableSummary $summary, $token, $flags=EDIT_UPDATE) | |
Saves the entity using the given summary. | |
redirectToEntityPage (EditEntityStatus $status) | |
Redirect to the page of the entity that was successfully edited. | |
getCopyrightHTML ( $saveMessageKey=null) | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
getGroupName () | |
checkBlocked () | |
Checks if user is blocked, and if blocked throws a UserBlocked. | |
showErrorHTML ( $error) | |
Private Member Functions | |
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. | |
removeSiteLink (Item $item, string $siteId, Summary $summary) | |
getSiteLinkTargetSite (string $siteId) | |
Private Attributes | |
$siteLinkPageNormalizer | |
$siteLinkTargetProvider | |
$siteLinkGroups | |
$badgeItems | |
$labelDescriptionLookupFactory | |
$siteLinkChangeOpFactory | |
$site | |
$page | |
$badges | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
$summaryFormatter | |
Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
$stringNormalizer | |
Special page for setting the sitepage of a Wikibase entity.
Wikibase\Repo\Specials\SpecialSetSiteLink::__construct | ( | array | $tags, |
SpecialPageCopyrightView | $copyrightView, | ||
SummaryFormatter | $summaryFormatter, | ||
EntityTitleLookup | $entityTitleLookup, | ||
MediaWikiEditEntityFactory | $editEntityFactory, | ||
AnonymousEditWarningBuilder | $anonymousEditWarningBuilder, | ||
SiteLinkPageNormalizer | $siteLinkPageNormalizer, | ||
SiteLinkTargetProvider | $siteLinkTargetProvider, | ||
array | $siteLinkGroups, | ||
array | $badgeItems, | ||
FallbackLabelDescriptionLookupFactory | $labelDescriptionLookupFactory, | ||
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory ) |
string[] | $tags | List of tags to add to edits |
SpecialPageCopyrightView | $copyrightView | |
SummaryFormatter | $summaryFormatter | |
EntityTitleLookup | $entityTitleLookup | |
MediaWikiEditEntityFactory | $editEntityFactory | |
AnonymousEditWarningBuilder | $anonymousEditWarningBuilder | |
SiteLinkPageNormalizer | $siteLinkPageNormalizer | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
string[] | $siteLinkGroups | |
string[] | $badgeItems | |
FallbackLabelDescriptionLookupFactory | $labelDescriptionLookupFactory | |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory |
Wikibase\Repo\Specials\SpecialSetSiteLink::doesWrites | ( | ) |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
static |
|
private |
Returning the badges of the entity.
Item | null | $item | |
string | $siteId |
OutOfBoundsException |
|
protected |
EntityDocument | null | $entity |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
Returning the site page of the entity.
Item | null | $item | |
string | $siteId |
OutOfBoundsException |
|
private |
|
private |
Checks if the site id is valid.
string | $siteId |
|
protected |
EntityDocument | $entity |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
Validates badges from params and turns them into an array of ItemIds.
string[] | $badges | |
Status | $status |
|
protected |
string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
|
private |
Setting the sitepage of the entity.
EntityDocument | $item | |
string | $siteId | |
string | $pageName | |
string[] | $badgeIds | |
Summary | null | &$summary | The summary for this edit will be saved here. |
InvalidArgumentException |
|
protected |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |