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, $moduleName, ApiErrorReporter $errorReporter, StatementChangeOpFactory $statementChangeOpFactory, StatementModificationHelper $modificationHelper, StatementGuidParser $guidParser, callable $resultBuilderInstantiator, callable $entitySavingHelperInstantiator, bool $federatedPropertiesEnabled)
 
 execute ()
 
 isWriteMode ()
 
 needsToken ()
 

Protected Member Functions

 getAllowedParams ()
 
 getExamplesMessages ()
 

Protected Attributes

 $errorReporter
 

Private Member Functions

 validateParameters (array $params)
 

Private Attributes

 $statementChangeOpFactory
 
 $modificationHelper
 
 $guidParser
 
 $resultBuilder
 
 $entitySavingHelper
 

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,
  $moduleName,
ApiErrorReporter  $errorReporter,
StatementChangeOpFactory  $statementChangeOpFactory,
StatementModificationHelper  $modificationHelper,
StatementGuidParser  $guidParser,
callable  $resultBuilderInstantiator,
callable  $entitySavingHelperInstantiator,
bool  $federatedPropertiesEnabled 
)

Member Function Documentation

◆ execute()

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

◆ 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

◆ $statementChangeOpFactory

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

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