|
Wikibase
MediaWiki Wikibase extension
|
Special page for setting label, description and aliases of a Wikibase entity that features labels, descriptions and aliases. More...
Inheritance diagram for Wikibase\Repo\Specials\SpecialSetLabelDescriptionAliases:
Collaboration diagram for Wikibase\Repo\Specials\SpecialSetLabelDescriptionAliases:Public Member Functions | |
| __construct (SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory, FingerprintChangeOpFactory $changeOpFactory, ContentLanguages $termsLanguages, EntityPermissionChecker $permissionChecker) | |
| doesWrites () | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialModifyEntity | |
| __construct ( $title, SpecialPageCopyrightView $copyrightView, SummaryFormatter $summaryFormatter, EntityTitleLookup $entityTitleLookup, MediawikiEditEntityFactory $editEntityFactory) | |
| execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseRepoPage | |
| __construct ( $title, $restriction, 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 | newFromGlobalState () |
Protected Member Functions | |
| validateInput () | |
| getForm (EntityDocument $entity=null) | |
| processArguments ( $subPage) | |
| modifyEntity (EntityDocument $entity) | |
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. | |
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. | |
| 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 | |
| wasPostedWithLabelDescriptionOrAliases () | |
| isAllowedToChangeTerms (EntityDocument $entity) | |
| getLabeledInputField ( $termType, $value) | |
| Returns an HTML label and text input element for a specific term. | |
| extractInput ( $subPage) | |
| setFingerprintFields (Fingerprint $fingerprint) | |
| isValidLanguageCode ( $languageCode) | |
| assertNoPipeCharacterInAliases (Fingerprint $fingerprint) | |
| applyChangeOpList (array $changeOps, EntityDocument $entity) | |
| getChangeOps (Fingerprint $fingerprint) | |
| getSummaryForLabelDescriptionAliases () | |
Private Attributes | |
| $changeOpFactory | |
| $termsLanguages | |
| $permissionChecker | |
| $languageCode | |
| $label = '' | |
| $description = '' | |
| $aliases = [] | |
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 label, description and aliases of a Wikibase entity that features labels, descriptions and aliases.
| Wikibase\Repo\Specials\SpecialSetLabelDescriptionAliases::__construct | ( | SpecialPageCopyrightView | $copyrightView, |
| SummaryFormatter | $summaryFormatter, | ||
| EntityTitleLookup | $entityTitleLookup, | ||
| MediawikiEditEntityFactory | $editEntityFactory, | ||
| FingerprintChangeOpFactory | $changeOpFactory, | ||
| ContentLanguages | $termsLanguages, | ||
| EntityPermissionChecker | $permissionChecker | ||
| ) |
|
private |
| ChangeOpException |
XXX: The $changeOps array is still used below as it is indexed with the module name to pass to the Summary object.
|
private |
| Fingerprint | $fingerprint |
| UserInputException |
| Wikibase\Repo\Specials\SpecialSetLabelDescriptionAliases::doesWrites | ( | ) |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
| string | null | $subPage |
|
private |
| Fingerprint | $fingerprint |
|
protected |
| EntityDocument | null | $entity |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
Returns an HTML label and text input element for a specific term.
| string | $termType | Either 'label', 'description' or 'aliases'. |
| string | $value | Text to fill the input element with |
|
private |
|
private |
| EntityDocument | $entity |
|
private |
| string | null | $languageCode |
|
protected |
| EntityDocument | $entity |
| InvalidArgumentException |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
static |
|
protected |
| string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
|
protected |
Reimplemented from Wikibase\Repo\Specials\SpecialModifyEntity.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |