Class for label change operation.
More...
Class for label change operation.
- Copyright
- GPL-2.0-or-later
- Author
- Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
-
Daniel Kinzler
-
Thiemo Kreuz
◆ __construct()
Wikibase\Repo\ChangeOp\ChangeOpLabel::__construct |
( |
| $languageCode, |
|
|
| $label, |
|
|
TermValidatorFactory | $termValidatorFactory ) |
- Parameters
-
string | $languageCode | |
string | null | $label | |
TermValidatorFactory | $termValidatorFactory | |
- Exceptions
-
◆ apply()
◆ buildResult()
Wikibase\Repo\ChangeOp\ChangeOpLabel::buildResult |
( |
EntityId | $entityId = null, |
|
|
Term | $oldLabel = null, |
|
|
Term | $newLabel = null ) |
|
private |
- Parameters
-
EntityId | null | $entityId | |
Term | null | $oldLabel | |
Term | null | $newLabel | |
- Returns
- ChangeOpLabelResult
◆ getActions()
Wikibase\Repo\ChangeOp\ChangeOpLabel::getActions |
( |
| ) |
|
◆ updateLabels()
Wikibase\Repo\ChangeOp\ChangeOpLabel::updateLabels |
( |
TermList | $labels | ) |
|
|
private |
Applies the change to the labels.
- Parameters
-
◆ validate()
Wikibase\Repo\ChangeOp\ChangeOpLabel::validate |
( |
EntityDocument | $entity | ) |
|
◆ $label
Wikibase\Repo\ChangeOp\ChangeOpLabel::$label |
|
private |
◆ $languageCode
Wikibase\Repo\ChangeOp\ChangeOpLabel::$languageCode |
|
private |
◆ $termValidatorFactory
Wikibase\Repo\ChangeOp\ChangeOpLabel::$termValidatorFactory |
|
private |
The documentation for this class was generated from the following file: