API module for creating or updating an entire Claim.
More...
|
| __construct (ApiMain $mainModule, string $moduleName, ApiErrorReporter $errorReporter, Deserializer $statementDeserializer, StatementChangeOpFactory $statementChangeOpFactory, StatementModificationHelper $modificationHelper, StatementGuidParser $guidParser, callable $resultBuilderInstantiator, callable $entitySavingHelperInstantiator, IBufferingStatsdDataFactory $stats, bool $federatedPropertiesEnabled, array $sandboxEntityIds) |
|
| execute () |
|
| isWriteMode () |
|
| needsToken () |
|
|
static | factory (ApiMain $mainModule, string $moduleName, IBufferingStatsdDataFactory $stats, ApiHelperFactory $apiHelperFactory, ChangeOpFactoryProvider $changeOpFactoryProvider, EntityIdParser $entityIdParser, Deserializer $externalFormatStatementDeserializer, SettingsArray $repoSettings, SnakFactory $snakFactory, StatementGuidParser $statementGuidParser, StatementGuidValidator $statementGuidValidator) |
|
API module for creating or updating an entire Claim.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
-
Addshore
◆ __construct()
Wikibase\Repo\Api\SetClaim::__construct |
( |
ApiMain | $mainModule, |
|
|
string | $moduleName, |
|
|
ApiErrorReporter | $errorReporter, |
|
|
Deserializer | $statementDeserializer, |
|
|
StatementChangeOpFactory | $statementChangeOpFactory, |
|
|
StatementModificationHelper | $modificationHelper, |
|
|
StatementGuidParser | $guidParser, |
|
|
callable | $resultBuilderInstantiator, |
|
|
callable | $entitySavingHelperInstantiator, |
|
|
IBufferingStatsdDataFactory | $stats, |
|
|
bool | $federatedPropertiesEnabled, |
|
|
array | $sandboxEntityIds ) |
◆ execute()
Wikibase\Repo\Api\SetClaim::execute |
( |
| ) |
|
◆ executeInternal()
Wikibase\Repo\Api\SetClaim::executeInternal |
( |
| ) |
|
|
private |
◆ factory()
static Wikibase\Repo\Api\SetClaim::factory |
( |
ApiMain | $mainModule, |
|
|
string | $moduleName, |
|
|
IBufferingStatsdDataFactory | $stats, |
|
|
ApiHelperFactory | $apiHelperFactory, |
|
|
ChangeOpFactoryProvider | $changeOpFactoryProvider, |
|
|
EntityIdParser | $entityIdParser, |
|
|
Deserializer | $externalFormatStatementDeserializer, |
|
|
SettingsArray | $repoSettings, |
|
|
SnakFactory | $snakFactory, |
|
|
StatementGuidParser | $statementGuidParser, |
|
|
StatementGuidValidator | $statementGuidValidator ) |
|
static |
◆ getAllowedParams()
Wikibase\Repo\Api\SetClaim::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getExamplesMessages()
Wikibase\Repo\Api\SetClaim::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ getStatementFromParams()
Wikibase\Repo\Api\SetClaim::getStatementFromParams |
( |
array | $params | ) |
|
|
private |
- Parameters
-
- Exceptions
-
IllegalValueException | |
ApiUsageException | |
LogicException | |
- Returns
- Statement
◆ getSummary()
- Parameters
-
array | $params | |
Statement | $statement | |
StatementList | $statementList | |
- Exceptions
-
- Returns
- Summary
- Todo
- this summary builder is ugly and summary stuff needs to be refactored
◆ isWriteMode()
Wikibase\Repo\Api\SetClaim::isWriteMode |
( |
| ) |
|
◆ needsToken()
Wikibase\Repo\Api\SetClaim::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ statementMainSnakAlreadyExists()
Wikibase\Repo\Api\SetClaim::statementMainSnakAlreadyExists |
( |
Statement | $statement, |
|
|
StatementList | $existingStatements ) |
|
private |
◆ $entitySavingHelper
Wikibase\Repo\Api\SetClaim::$entitySavingHelper |
|
private |
◆ $errorReporter
Wikibase\Repo\Api\SetClaim::$errorReporter |
|
protected |
◆ $guidParser
Wikibase\Repo\Api\SetClaim::$guidParser |
|
private |
◆ $modificationHelper
Wikibase\Repo\Api\SetClaim::$modificationHelper |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\SetClaim::$resultBuilder |
|
private |
◆ $sandboxEntityIds
Wikibase\Repo\Api\SetClaim::$sandboxEntityIds |
|
private |
◆ $statementChangeOpFactory
Wikibase\Repo\Api\SetClaim::$statementChangeOpFactory |
|
private |
◆ $statementDeserializer
Wikibase\Repo\Api\SetClaim::$statementDeserializer |
|
private |
◆ $stats
Wikibase\Repo\Api\SetClaim::$stats |
|
private |
The documentation for this class was generated from the following file: