Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Api\SetClaimValue Class Reference

API module for setting the DataValue contained by the main snak of a claim. More...

+ Inheritance diagram for Wikibase\Repo\Api\SetClaimValue:
+ Collaboration diagram for Wikibase\Repo\Api\SetClaimValue:

Public Member Functions

 __construct (ApiMain $mainModule, string $moduleName, ApiErrorReporter $errorReporter, StatementChangeOpFactory $statementChangeOpFactory, StatementModificationHelper $modificationHelper, StatementGuidParser $guidParser, callable $resultBuilderInstantiator, callable $entitySavingHelperInstantiator, bool $federatedPropertiesEnabled, array $sandboxEntityIds)
 
 execute ()
 
 isWriteMode ()
 
 needsToken ()
 

Static Public Member Functions

static factory (ApiMain $mainModule, string $moduleName, ApiHelperFactory $apiHelperFactory, ChangeOpFactoryProvider $changeOpFactoryProvider, EntityIdParser $entityIdParser, SettingsArray $repoSettings, SnakFactory $snakFactory, StatementGuidParser $statementGuidParser, StatementGuidValidator $statementGuidValidator)
 

Protected Member Functions

 getAllowedParams ()
 
 getExamplesMessages ()
 

Protected Attributes

 $errorReporter
 

Private Member Functions

 validateParameters (array $params)
 

Private Attributes

 $statementChangeOpFactory
 
 $modificationHelper
 
 $guidParser
 
 $resultBuilder
 
 $entitySavingHelper
 
 $sandboxEntityIds
 

Detailed Description

API module for setting the DataValue contained by the main snak of a claim.

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 >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Api\SetClaimValue::__construct ( ApiMain $mainModule,
string $moduleName,
ApiErrorReporter $errorReporter,
StatementChangeOpFactory $statementChangeOpFactory,
StatementModificationHelper $modificationHelper,
StatementGuidParser $guidParser,
callable $resultBuilderInstantiator,
callable $entitySavingHelperInstantiator,
bool $federatedPropertiesEnabled,
array $sandboxEntityIds )

Member Function Documentation

◆ execute()

Wikibase\Repo\Api\SetClaimValue::execute ( )

◆ factory()

static Wikibase\Repo\Api\SetClaimValue::factory ( ApiMain $mainModule,
string $moduleName,
ApiHelperFactory $apiHelperFactory,
ChangeOpFactoryProvider $changeOpFactoryProvider,
EntityIdParser $entityIdParser,
SettingsArray $repoSettings,
SnakFactory $snakFactory,
StatementGuidParser $statementGuidParser,
StatementGuidValidator $statementGuidValidator )
static

◆ getAllowedParams()

Wikibase\Repo\Api\SetClaimValue::getAllowedParams ( )
protected

◆ getExamplesMessages()

Wikibase\Repo\Api\SetClaimValue::getExamplesMessages ( )
protected

◆ isWriteMode()

Wikibase\Repo\Api\SetClaimValue::isWriteMode ( )

◆ needsToken()

Wikibase\Repo\Api\SetClaimValue::needsToken ( )
See also
ApiBase::needsToken
Returns
string

◆ validateParameters()

Wikibase\Repo\Api\SetClaimValue::validateParameters ( array $params)
private
Parameters
array$params

Member Data Documentation

◆ $entitySavingHelper

Wikibase\Repo\Api\SetClaimValue::$entitySavingHelper
private

◆ $errorReporter

Wikibase\Repo\Api\SetClaimValue::$errorReporter
protected

◆ $guidParser

Wikibase\Repo\Api\SetClaimValue::$guidParser
private

◆ $modificationHelper

Wikibase\Repo\Api\SetClaimValue::$modificationHelper
private

◆ $resultBuilder

Wikibase\Repo\Api\SetClaimValue::$resultBuilder
private

◆ $sandboxEntityIds

Wikibase\Repo\Api\SetClaimValue::$sandboxEntityIds
private

◆ $statementChangeOpFactory

Wikibase\Repo\Api\SetClaimValue::$statementChangeOpFactory
private

The documentation for this class was generated from the following file: