- 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 |
|
) |
| |
- See also
- ApiBase::__construct
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
ItemMergeInteractor | $interactor | |
ApiErrorReporter | $errorReporter | |
callable | $resultBuilderInstantiator | |
◆ 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 |
|
) |
| |
|
private |
- Parameters
-
ItemId | $fromId | |
ItemId | $toId | |
string[] | $ignoreConflicts | |
string | null | $summary | |
bool | $bot | |
string[] | $tags | Already permission checked via self::PARAM_TYPE => 'tags' |
- Exceptions
-
ItemMergeException | |
RedirectCreationException | |
◆ needsToken()
Wikibase\Repo\Api\MergeItems::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ $errorReporter
Wikibase\Repo\Api\MergeItems::$errorReporter |
|
private |
◆ $interactor
Wikibase\Repo\Api\MergeItems::$interactor |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\MergeItems::$resultBuilder |
|
private |
◆ $sandboxEntityIds
Wikibase\Repo\Api\MergeItems::$sandboxEntityIds |
|
private |
The documentation for this class was generated from the following file: