Wikibase
MediaWiki Wikibase extension
|
Derived class for API modules modifying a single entity identified by id xor a combination of site and page title. More...
Public Member Functions | |
__construct (ApiMain $mainModule, $moduleName, ContentLanguages $termsLanguages, EntityRevisionLookup $revisionLookup, EntityIdParser $idParser, EntityFactory $entityFactory, Deserializer $statementDeserializer, array $propertyDataTypes, FingerprintChangeOpFactory $termChangeOpFactory, StatementChangeOpFactory $statementChangeOpFactory, SiteLinkChangeOpFactory $siteLinkChangeOpFactory, EntityChangeOpProvider $entityChangeOpProvider, EditSummaryHelper $editSummaryHelper, bool $federatedPropertiesEnabled) | |
needsToken () | |
isWriteMode () | |
Public Member Functions inherited from Wikibase\Repo\Api\ModifyEntity | |
__construct (ApiMain $mainModule, $moduleName, bool $federatedPropertiesEnabled, $modulePrefix='') | |
setServices (SiteLinkTargetProvider $siteLinkTargetProvider) | |
execute () | |
Public Attributes | |
const | PARAM_DATA = 'data' |
const | PARAM_CLEAR = 'clear' |
Protected Member Functions | |
prepareParameters (array $params) | |
validateEntitySpecificParameters (array $preparedParameters, EntityDocument $entity, $baseRevId) | |
modifyEntity (EntityDocument &$entity, ChangeOp $changeOp, array $preparedParameters) | |
getChangeOp (array $preparedParameters, EntityDocument $entity) | |
getAllowedParams () | |
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. | |
validateParameters (array $params) | |
Make sure the required parameters are provided and that they are valid. | |
Private Member Functions | |
entityExists (EntityId $entityId) | |
getSummary (array $preparedParameters, EntityDocument $entity, ChangeOpResult $changeOpResult) | |
isUpdatingExistingEntity (array $preparedParameters) | |
buildResult (EntityDocument $entity) | |
validateDataParameter (array $params) | |
validateDataProperties ( $data, EntityDocument $entity, $revisionId=0) | |
checkValidJson ( $data) | |
checkPageIdProp (array $data, Title $title=null) | |
checkNamespaceProp (array $data, Title $title=null) | |
checkTitleProp (array $data, Title $title=null) | |
checkRevisionProp (array $data, $revisionId) | |
checkEntityId (array $data, EntityId $entityId=null) | |
checkEntityType (array $data, EntityDocument $entity) | |
assertArray ( $value, $message) | |
assertString ( $value, $message) | |
assertType ( $type, $value, $message) | |
dieIfNotClearable (EntityDocument $entity) | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\Api\ModifyEntity | |
$stringNormalizer | |
$siteLinkTargetProvider | |
$siteLinkGroups | |
$badgeItems | |
$errorReporter | |
$enabledEntityTypes | |
Derived class for API modules modifying a single entity identified by id xor a combination of site and page title.
Wikibase\Repo\Api\EditEntity::__construct | ( | ApiMain | $mainModule, |
$moduleName, | |||
ContentLanguages | $termsLanguages, | ||
EntityRevisionLookup | $revisionLookup, | ||
EntityIdParser | $idParser, | ||
EntityFactory | $entityFactory, | ||
Deserializer | $statementDeserializer, | ||
array | $propertyDataTypes, | ||
FingerprintChangeOpFactory | $termChangeOpFactory, | ||
StatementChangeOpFactory | $statementChangeOpFactory, | ||
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory, | ||
EntityChangeOpProvider | $entityChangeOpProvider, | ||
EditSummaryHelper | $editSummaryHelper, | ||
bool | $federatedPropertiesEnabled | ||
) |
ApiMain | $mainModule | |
string | $moduleName | |
ContentLanguages | $termsLanguages | |
EntityRevisionLookup | $revisionLookup | |
EntityIdParser | $idParser | |
EntityFactory | $entityFactory | |
Deserializer | $statementDeserializer | |
string[] | $propertyDataTypes | |
FingerprintChangeOpFactory | $termChangeOpFactory | |
StatementChangeOpFactory | $statementChangeOpFactory | |
SiteLinkChangeOpFactory | $siteLinkChangeOpFactory | |
EntityChangeOpProvider | $entityChangeOpProvider | |
EditSummaryHelper | $editSummaryHelper | |
bool | $federatedPropertiesEnabled |
|
private |
mixed | $value | |
string | $message |
|
private |
mixed | $value | |
string | $message |
|
private |
string | $type | |
mixed | $value | |
string | $message |
|
private |
|
private |
array | $data | |
EntityId | null | $entityId |
|
private |
array | $data | |
EntityDocument | $entity |
|
private |
array | $data | |
Title | null | $title |
|
private |
array | $data | |
Title | null | $title |
|
private |
array | $data | |
int | null | $revisionId |
|
private |
array | $data | |
Title | null | $title |
|
private |
mixed | $data |
|
private |
|
private |
EntityId | $entityId |
|
protected |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
protected |
array | $preparedParameters | |
EntityDocument | $entity |
ApiUsageException |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
protected |
|
private |
array | $preparedParameters | |
EntityDocument | $entity | |
ChangeOpResult | $changeOpResult |
|
private |
Wikibase\Repo\Api\EditEntity::isWriteMode | ( | ) |
|
protected |
EntityDocument | &$entity | |
ChangeOp | $changeOp | |
array | $preparedParameters |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
Wikibase\Repo\Api\EditEntity::needsToken | ( | ) |
|
protected |
|
private |
array | $params |
|
private |
mixed | $data | |
EntityDocument | $entity | |
int | $revisionId |
|
protected |
Reimplemented from Wikibase\Repo\Api\ModifyEntity.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
const Wikibase\Repo\Api\EditEntity::PARAM_CLEAR = 'clear' |
const Wikibase\Repo\Api\EditEntity::PARAM_DATA = 'data' |