Class for aliases change operation.
More...
Class for aliases 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
◆ __construct()
Wikibase\Repo\ChangeOp\ChangeOpAliases::__construct |
( |
| $languageCode, |
|
|
array | $aliases, |
|
|
| $action, |
|
|
TermValidatorFactory | $termValidatorFactory ) |
- Parameters
-
string | $languageCode | |
string[] | $aliases | |
string | $action | should be set|add|remove |
TermValidatorFactory | $termValidatorFactory | |
- Exceptions
-
◆ apply()
- See also
- ChangeOp::apply()
- Parameters
-
EntityDocument | $entity | |
Summary | null | $summary | |
- Exceptions
-
InvalidArgumentException | |
ChangeOpException | |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
◆ getActions()
Wikibase\Repo\ChangeOp\ChangeOpAliases::getActions |
( |
| ) |
|
◆ updateAliases()
Wikibase\Repo\ChangeOp\ChangeOpAliases::updateAliases |
( |
AliasGroupList | $aliases | ) |
|
|
private |
Applies the change to the aliases.
- Parameters
-
- Exceptions
-
◆ validate()
Wikibase\Repo\ChangeOp\ChangeOpAliases::validate |
( |
EntityDocument | $entity | ) |
|
◆ $action
Wikibase\Repo\ChangeOp\ChangeOpAliases::$action |
|
private |
◆ $aliases
Wikibase\Repo\ChangeOp\ChangeOpAliases::$aliases |
|
private |
◆ $languageCode
Wikibase\Repo\ChangeOp\ChangeOpAliases::$languageCode |
|
private |
◆ $termValidatorFactory
Wikibase\Repo\ChangeOp\ChangeOpAliases::$termValidatorFactory |
|
private |
The documentation for this class was generated from the following file: