API module to set the label for a Wikibase entity.
More...
◆ __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: