Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Specials\SpecialSetAliases Class Reference

Special page for setting the aliases of a Wikibase entity. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialSetAliases:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialSetAliases:

Public Member Functions

 __construct (array $tags, ChangeOpFactoryProvider $changeOpFactoryProvider, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediaWikiEditEntityFactory $editEntityFactory, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EntityPermissionChecker $entityPermissionChecker, ContentLanguages $termsLanguages, LanguageNameUtils $languageNameUtils)
 
 doesWrites ()
 
- Public Member Functions inherited from 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)
 
- 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 (LanguageNameUtils $languageNameUtils, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, ChangeOpFactoryProvider $changeOpFactoryProvider, MediaWikiEditEntityFactory $editEntityFactory, EntityPermissionChecker $entityPermissionChecker, EntityTitleLookup $entityTitleLookup, SettingsArray $repoSettings, SummaryFormatter $summaryFormatter, ContentLanguages $termsLanguages)
 

Protected Member Functions

 validateInput ()
 
 getPostedValue ()
 
 getValue (EntityDocument $entity, $languageCode)
 
 setValue (EntityDocument $entity, $languageCode, $value)
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialModifyTerm
 processArguments ( $subPage)
 
 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

 assertNoPipeCharacterInAliases (AliasesProvider $entity, $languageCode)
 Screams and throws an error if any of existing aliases has pipe character.
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialModifyTerm
 $termChangeOpFactory
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage
 $summaryFormatter
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Detailed Description

Special page for setting the aliases of a Wikibase entity.

Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialSetAliases::__construct ( array $tags,
ChangeOpFactoryProvider $changeOpFactoryProvider,
SpecialPageCopyrightView $copyrightView,
SummaryFormatter $summaryFormatter,
EntityTitleLookup $entityTitleLookup,
MediaWikiEditEntityFactory $editEntityFactory,
AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
EntityPermissionChecker $entityPermissionChecker,
ContentLanguages $termsLanguages,
LanguageNameUtils $languageNameUtils )

Member Function Documentation

◆ assertNoPipeCharacterInAliases()

Wikibase\Repo\Specials\SpecialSetAliases::assertNoPipeCharacterInAliases ( AliasesProvider $entity,
$languageCode )
private

Screams and throws an error if any of existing aliases has pipe character.

Parameters
EntityDocument$entity
string$languageCode
Exceptions
UserInputExceptionPhanTypeMismatchDeclaredParam Intersection type

◆ doesWrites()

Wikibase\Repo\Specials\SpecialSetAliases::doesWrites ( )

◆ factory()

static Wikibase\Repo\Specials\SpecialSetAliases::factory ( LanguageNameUtils $languageNameUtils,
AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
ChangeOpFactoryProvider $changeOpFactoryProvider,
MediaWikiEditEntityFactory $editEntityFactory,
EntityPermissionChecker $entityPermissionChecker,
EntityTitleLookup $entityTitleLookup,
SettingsArray $repoSettings,
SummaryFormatter $summaryFormatter,
ContentLanguages $termsLanguages )
static

◆ getPostedValue()

Wikibase\Repo\Specials\SpecialSetAliases::getPostedValue ( )
protected
See also
SpecialModifyTerm::getPostedValue()
Returns
string|null

Reimplemented from Wikibase\Repo\Specials\SpecialModifyTerm.

◆ getValue()

Wikibase\Repo\Specials\SpecialSetAliases::getValue ( EntityDocument $entity,
$languageCode )
protected
See also
SpecialModifyTerm::getValue()
Parameters
EntityDocument$entity
string$languageCode
Exceptions
InvalidArgumentException
Returns
string

Reimplemented from Wikibase\Repo\Specials\SpecialModifyTerm.

◆ setValue()

Wikibase\Repo\Specials\SpecialSetAliases::setValue ( EntityDocument $entity,
$languageCode,
$value )
protected
See also
SpecialModifyTerm::setValue()
Parameters
EntityDocument$entity
string$languageCode
string$value
Exceptions
UserInputException|InvalidArgumentException
Returns
Summary

Reimplemented from Wikibase\Repo\Specials\SpecialModifyTerm.

◆ validateInput()

Wikibase\Repo\Specials\SpecialSetAliases::validateInput ( )
protected
See also
SpecialModifyTerm::validateInput
Returns
bool

Reimplemented from Wikibase\Repo\Specials\SpecialModifyTerm.


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