API module to set the label for a Wikibase entity.
More...
API module to set the label for a Wikibase entity.
Requires API write mode to be enabled.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
John Erling Blad < jebla.nosp@m.d@gm.nosp@m.ail.c.nosp@m.om >
-
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
◆ __construct()
Wikibase\Repo\Api\SetLabel::__construct |
( |
ApiMain |
$mainModule, |
|
|
string |
$moduleName, |
|
|
FingerprintChangeOpFactory |
$termChangeOpFactory, |
|
|
bool |
$federatedPropertiesEnabled, |
|
|
EntityFactory |
$entityFactory, |
|
|
array |
$sandboxEntityIds |
|
) |
| |
◆ factory()
◆ getAllowedParams()
Wikibase\Repo\Api\SetLabel::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getChangeOp()
Wikibase\Repo\Api\SetLabel::getChangeOp |
( |
array |
$preparedParameters, |
|
|
EntityDocument |
$entity |
|
) |
| |
|
protected |
◆ getEntityTypesWithLabels()
Wikibase\Repo\Api\SetLabel::getEntityTypesWithLabels |
( |
| ) |
|
|
protected |
◆ getExamplesMessages()
Wikibase\Repo\Api\SetLabel::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ isWriteMode()
Wikibase\Repo\Api\SetLabel::isWriteMode |
( |
| ) |
|
- See also
- ApiBase::isWriteMode()
- Returns
- bool Always true.
◆ modifyEntity()
Wikibase\Repo\Api\SetLabel::modifyEntity |
( |
EntityDocument |
$entity, |
|
|
ChangeOp |
$changeOp, |
|
|
array |
$preparedParameters |
|
) |
| |
|
protected |
Actually modify the entity.
- Parameters
-
EntityDocument | $entity | |
ChangeOp | $changeOp | |
array | $preparedParameters | |
- Returns
- Summary|null a summary of the modification, or null to indicate failure.
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
◆ needsToken()
Wikibase\Repo\Api\SetLabel::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ $entityFactory
Wikibase\Repo\Api\SetLabel::$entityFactory |
|
private |
◆ $sandboxEntityIds
Wikibase\Repo\Api\SetLabel::$sandboxEntityIds |
|
private |
◆ $termChangeOpFactory
Wikibase\Repo\Api\SetLabel::$termChangeOpFactory |
|
private |
The documentation for this class was generated from the following file: