Wikibase
MediaWiki Wikibase extension
|
API module to set the aliases for a Wikibase entity. More...
Public Member Functions | |
__construct (ApiMain $mainModule, string $moduleName, FingerprintChangeOpFactory $termChangeOpFactory, IBufferingStatsdDataFactory $stats, bool $federatedPropertiesEnabled, EntityFactory $entityFactory, array $sandboxEntityIds) | |
needsToken () | |
isWriteMode () | |
Public Member Functions inherited from Wikibase\Repo\Api\ModifyEntity | |
__construct (ApiMain $mainModule, string $moduleName, bool $federatedPropertiesEnabled, string $modulePrefix='') | |
setServices (SiteLinkGlobalIdentifiersProvider $siteLinkGlobalIdentifiersProvider) | |
execute () | |
isFreshIdAssigned () | |
Return whether a fresh id is assigned or not. | |
Static Public Member Functions | |
static | factory (ApiMain $mainModule, string $moduleName, IBufferingStatsdDataFactory $stats, ChangeOpFactoryProvider $changeOpFactoryProvider, EntityFactory $entityFactory, SettingsArray $repoSettings) |
Protected Member Functions | |
validateParameters (array $params) | |
modifyEntity (EntityDocument $entity, ChangeOp $changeOp, array $preparedParameters) | |
Actually modify the entity. | |
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, int $baseRevId) | |
Private Member Functions | |
adjustSummary (Summary $summary, array $params, AliasesProvider $entity) | |
normalizeAliases (array $aliases) | |
Private Attributes | |
$termChangeOpFactory | |
$stats | |
$entityFactory | |
$sandboxEntityIds | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\Api\ModifyEntity | |
$stringNormalizer | |
$siteLinkGlobalIdentifiersProvider | |
$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, |
string | $moduleName, | ||
FingerprintChangeOpFactory | $termChangeOpFactory, | ||
IBufferingStatsdDataFactory | $stats, | ||
bool | $federatedPropertiesEnabled, | ||
EntityFactory | $entityFactory, | ||
array | $sandboxEntityIds ) |
|
private |
|
static |
|
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 |
Actually modify the entity.
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 |
|
private |
|
private |
|
private |