Wikibase
MediaWiki Wikibase extension
|
API module for creating entity redirects. More...
Public Member Functions | |
__construct (ApiMain $mainModule, string $moduleName, EntityIdParser $idParser, ApiErrorReporter $errorReporter, ItemRedirectCreationInteractor $interactor, PermissionManager $permissionManager, array $sandboxEntityIds) | |
execute () | |
isWriteMode () | |
needsToken () | |
mustBePosted () | |
Static Public Member Functions | |
static | factory (ApiMain $apiMain, string $moduleName, PermissionManager $permissionManager, ApiHelperFactory $apiHelperFactory, EntityIdParser $entityIdParser, ItemRedirectCreationInteractor $interactor, SettingsArray $settings) |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Private Member Functions | |
createRedirect (EntityId $fromId, EntityId $toId, bool $bot, ApiResult $result, array $params) | |
handleRedirectCreationException (RedirectCreationException $ex) | |
Private Attributes | |
EntityIdParser | $idParser |
ApiErrorReporter | $errorReporter |
ItemRedirectCreationInteractor | $interactor |
PermissionManager | $permissionManager |
array | $sandboxEntityIds |
API module for creating entity redirects.
Wikibase\Repo\Api\CreateRedirect::__construct | ( | ApiMain | $mainModule, |
string | $moduleName, | ||
EntityIdParser | $idParser, | ||
ApiErrorReporter | $errorReporter, | ||
ItemRedirectCreationInteractor | $interactor, | ||
PermissionManager | $permissionManager, | ||
array | $sandboxEntityIds ) |
|
private |
EntityId | $fromId | |
EntityId | $toId | |
bool | $bot | Whether the edit should be marked as bot |
ApiResult | $result | The result object to report the result to. |
array | $params | Any other params (for ApiCreateTempUserTrait). |
RedirectCreationException |
Wikibase\Repo\Api\CreateRedirect::execute | ( | ) |
|
static |
|
protected |
|
protected |
|
private |
RedirectCreationException | $ex |
ApiUsageException | always |
Wikibase\Repo\Api\CreateRedirect::isWriteMode | ( | ) |
Wikibase\Repo\Api\CreateRedirect::mustBePosted | ( | ) |
Wikibase\Repo\Api\CreateRedirect::needsToken | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |