Wikibase
MediaWiki Wikibase extension
|
Abstract special page for setting a value of a Wikibase entity. More...
Public Member Functions | |
__construct (string $title, array $tags, ChangeOpFactoryProvider $changeOpFactoryProvider, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediaWikiEditEntityFactory $editEntityFactory, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EntityPermissionChecker $permissionChecker, ContentLanguages $termsLanguages, LanguageNameUtils $languageNameUtils) | |
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 () | |
Protected Member Functions | |
processArguments ( $subPage) | |
validateInput () | |
modifyEntity (EntityDocument $entity) | |
getForm (?EntityDocument $entity) | |
getPostedValue () | |
Returning the posted value of the request. | |
getValue (EntityDocument $entity, $languageCode) | |
Returning the value of the entity name by the given language. | |
setValue (EntityDocument $entity, $languageCode, $value) | |
Setting the value of the entity name by the given language. | |
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) | |
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) | |
Applies the given ChangeOp to the given Entity. | |
getSubmitKey (?EntityDocument $entity) | |
showCopyrightNotice (?EntityDocument $entity) | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
prepareEditEntity (?EntityId $id=null, int $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 (?string $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) | |
Protected Attributes | |
$termChangeOpFactory | |
Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
$summaryFormatter | |
Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
$stringNormalizer | |
Private Member Functions | |
checkSubPageLanguage () | |
Check the language given as sup page argument. | |
checkTermChangePermissions (EntityId $entityId) | |
setValueIfNull (?EntityDocument $entity) | |
Private Attributes | |
$languageCode | |
$value | |
$termsLanguages | |
$permissionChecker | |
$languageNameUtils | |
Abstract special page for setting a value of a Wikibase entity.
Wikibase\Repo\Specials\SpecialModifyTerm::__construct | ( | string | $title, |
array | $tags, | ||
ChangeOpFactoryProvider | $changeOpFactoryProvider, | ||
SpecialPageCopyrightView | $copyrightView, | ||
SummaryFormatter | $summaryFormatter, | ||
EntityTitleLookup | $entityTitleLookup, | ||
MediaWikiEditEntityFactory | $editEntityFactory, | ||
AnonymousEditWarningBuilder | $anonymousEditWarningBuilder, | ||
EntityPermissionChecker | $permissionChecker, | ||
ContentLanguages | $termsLanguages, | ||
LanguageNameUtils | $languageNameUtils ) |
|
private |
Check the language given as sup page argument.
|
private |
EntityId | $entityId |
Wikibase\Repo\Specials\SpecialModifyTerm::doesWrites | ( | ) |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
Reimplemented in Wikibase\Repo\Specials\SpecialSetAliases, Wikibase\Repo\Specials\SpecialSetDescription, and Wikibase\Repo\Specials\SpecialSetLabel.
|
protected |
EntityDocument | null | $entity |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
abstractprotected |
Returning the posted value of the request.
Reimplemented in Wikibase\Repo\Specials\SpecialSetAliases, Wikibase\Repo\Specials\SpecialSetDescription, and Wikibase\Repo\Specials\SpecialSetLabel.
|
abstractprotected |
Returning the value of the entity name by the given language.
EntityDocument | $entity | |
string | $languageCode |
Reimplemented in Wikibase\Repo\Specials\SpecialSetAliases, Wikibase\Repo\Specials\SpecialSetDescription, and Wikibase\Repo\Specials\SpecialSetLabel.
|
protected |
EntityDocument | $entity |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
protected |
string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
abstractprotected |
Setting the value of the entity name by the given language.
EntityDocument | $entity | |
string | $languageCode | |
string | $value |
Reimplemented in Wikibase\Repo\Specials\SpecialSetAliases, Wikibase\Repo\Specials\SpecialSetDescription, and Wikibase\Repo\Specials\SpecialSetLabel.
|
private |
|
protected |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
Reimplemented in Wikibase\Repo\Specials\SpecialSetAliases, Wikibase\Repo\Specials\SpecialSetDescription, and Wikibase\Repo\Specials\SpecialSetLabel.
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |