|
| getItemIdParam (array $parameters, string $name) |
|
| mergeItems (ItemId $fromId, ItemId $toId, array $ignoreConflicts, ?string $summary, bool $bot, array $tags, array $params) |
|
| handleException (Exception $ex, string $errorCode, array $extraData=[]) |
|
| addEntityToOutput (EntityRevision $entityRevision, string $name) |
|
- Copyright
- GPL-2.0-or-later
- Author
- Addshore
-
Daniel Kinzler
-
Lucie-Aimée Kaffee
◆ __construct()
Wikibase\Repo\Api\MergeItems::__construct |
( |
ApiMain | $mainModule, |
|
|
string | $moduleName, |
|
|
ItemMergeInteractor | $interactor, |
|
|
ApiErrorReporter | $errorReporter, |
|
|
callable | $resultBuilderInstantiator, |
|
|
array | $sandboxEntityIds ) |
◆ addEntityToOutput()
Wikibase\Repo\Api\MergeItems::addEntityToOutput |
( |
EntityRevision | $entityRevision, |
|
|
string | $name ) |
|
private |
◆ execute()
Wikibase\Repo\Api\MergeItems::execute |
( |
| ) |
|
◆ factory()
◆ getAllowedParams()
Wikibase\Repo\Api\MergeItems::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getExamplesMessages()
Wikibase\Repo\Api\MergeItems::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ getItemIdParam()
Wikibase\Repo\Api\MergeItems::getItemIdParam |
( |
array | $parameters, |
|
|
string | $name ) |
|
private |
- Parameters
-
array | $parameters | |
string | $name | |
- Returns
- ItemId
- Exceptions
-
ApiUsageException | if the given parameter is not a valid ItemId |
LogicException | |
◆ handleException()
Wikibase\Repo\Api\MergeItems::handleException |
( |
Exception | $ex, |
|
|
string | $errorCode, |
|
|
array | $extraData = [] ) |
|
private |
- Parameters
-
Exception | $ex | |
string | $errorCode | |
string[] | $extraData | |
- Exceptions
-
◆ isWriteMode()
Wikibase\Repo\Api\MergeItems::isWriteMode |
( |
| ) |
|
- See also
- ApiBase::isWriteMode
- Returns
- bool Always true.
◆ mergeItems()
Wikibase\Repo\Api\MergeItems::mergeItems |
( |
ItemId | $fromId, |
|
|
ItemId | $toId, |
|
|
array | $ignoreConflicts, |
|
|
?string | $summary, |
|
|
bool | $bot, |
|
|
array | $tags, |
|
|
array | $params ) |
|
private |
- Parameters
-
ItemId | $fromId | |
ItemId | $toId | |
string[] | $ignoreConflicts | |
string | null | $summary | |
bool | $bot | |
string[] | $tags | Already permission checked via ParamValidator::PARAM_TYPE => 'tags' |
array | $params | Any other params (for ApiCreateTempUserTrait). |
- Exceptions
-
ItemMergeException | |
RedirectCreationException | |
◆ needsToken()
Wikibase\Repo\Api\MergeItems::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ $errorReporter
◆ $interactor
◆ $resultBuilder
◆ $sandboxEntityIds
array Wikibase\Repo\Api\MergeItems::$sandboxEntityIds |
|
private |
The documentation for this class was generated from the following file: