API module for creating or updating an entire Claim.
More...
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, |
|
|
|
$moduleName, |
|
|
ApiErrorReporter |
$errorReporter, |
|
|
Deserializer |
$statementDeserializer, |
|
|
StatementChangeOpFactory |
$statementChangeOpFactory, |
|
|
StatementModificationHelper |
$modificationHelper, |
|
|
StatementGuidParser |
$guidParser, |
|
|
callable |
$resultBuilderInstantiator, |
|
|
callable |
$entitySavingHelperInstantiator, |
|
|
bool |
$federatedPropertiesEnabled |
|
) |
| |
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
ApiErrorReporter | $errorReporter | |
Deserializer | $statementDeserializer | |
StatementChangeOpFactory | $statementChangeOpFactory | |
StatementModificationHelper | $modificationHelper | |
StatementGuidParser | $guidParser | |
callable | $resultBuilderInstantiator | |
callable | $entitySavingHelperInstantiator | |
◆ execute()
Wikibase\Repo\Api\SetClaim::execute |
( |
| ) |
|
◆ executeInternal()
Wikibase\Repo\Api\SetClaim::executeInternal |
( |
| ) |
|
|
private |
◆ 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()
Wikibase\Repo\Api\SetClaim::getSummary |
( |
array |
$params, |
|
|
Statement |
$statement, |
|
|
StatementList |
$statementList |
|
) |
| |
|
private |
- 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 |
◆ $statementChangeOpFactory
Wikibase\Repo\Api\SetClaim::$statementChangeOpFactory |
|
private |
◆ $statementDeserializer
Wikibase\Repo\Api\SetClaim::$statementDeserializer |
|
private |
The documentation for this class was generated from the following file: