Wikibase
MediaWiki Wikibase extension
|
API module to set the aliases for a Wikibase entity. More...
Public Member Functions | |
__construct (ApiMain $mainModule, $moduleName, FingerprintChangeOpFactory $termChangeOpFactory, bool $federatedPropertiesEnabled) | |
needsToken () | |
isWriteMode () | |
Public Member Functions inherited from Wikibase\Repo\Api\ModifyEntity | |
__construct (ApiMain $mainModule, $moduleName, bool $federatedPropertiesEnabled, $modulePrefix='') | |
setServices (SiteLinkTargetProvider $siteLinkTargetProvider) | |
execute () | |
Protected Member Functions | |
validateParameters (array $params) | |
modifyEntity (EntityDocument &$entity, ChangeOp $changeOp, array $preparedParameters) | |
getChangeOp (array $preparedParameters, EntityDocument $entity) | |
getAllowedParams () | |
getEntityTypesWithAliases () | |
getExamplesMessages () | |
Protected Member Functions inherited from Wikibase\Repo\Api\ModifyEntity | |
getTitleLookup () | |
getResultBuilder () | |
createSummary (array $params) | |
Create a new Summary instance suitable for representing the action performed by this module. | |
applyChangeOp (ChangeOp $changeOp, EntityDocument $entity, Summary $summary=null) | |
Applies the given ChangeOp to the given Entity. | |
prepareParameters (array $params) | |
validateEntitySpecificParameters (array $preparedParameters, EntityDocument $entity, $baseRevId) | |
Private Member Functions | |
adjustSummary (Summary &$summary, array $params, AliasesProvider $entity) | |
normalizeAliases (array $aliases) | |
Private Attributes | |
$termChangeOpFactory | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\Api\ModifyEntity | |
$stringNormalizer | |
$siteLinkTargetProvider | |
$siteLinkGroups | |
$badgeItems | |
$errorReporter | |
$enabledEntityTypes | |
API module to set the aliases for a Wikibase entity.
Requires API write mode to be enabled.
Wikibase\Repo\Api\SetAliases::__construct | ( | ApiMain | $mainModule, |
$moduleName, | |||
FingerprintChangeOpFactory | $termChangeOpFactory, | ||
bool | $federatedPropertiesEnabled | ||
) |
ApiMain | $mainModule | |
string | $moduleName | |
FingerprintChangeOpFactory | $termChangeOpFactory |
|
private |
|
protected |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
protected |
array | $preparedParameters | |
EntityDocument | $entity |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
protected |
|
protected |
Wikibase\Repo\Api\SetAliases::isWriteMode | ( | ) |
|
protected |
EntityDocument | &$entity | |
ChangeOp | $changeOp | |
array | $preparedParameters |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
Wikibase\Repo\Api\SetAliases::needsToken | ( | ) |
|
private |
string[] | $aliases |
|
protected |
array | $params |
ApiUsageException |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
private |