API module for creating a qualifier or setting the value of an existing one.
More...
API module for creating a qualifier or setting the value of an existing one.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Daniel Kinzler
-
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
◆ __construct()
Wikibase\Repo\Api\SetQualifier::__construct |
( |
ApiMain |
$mainModule, |
|
|
string |
$moduleName, |
|
|
callable |
$errorReporterInstantiator, |
|
|
StatementChangeOpFactory |
$statementChangeOpFactory, |
|
|
StatementModificationHelper |
$modificationHelper, |
|
|
StatementGuidParser |
$guidParser, |
|
|
callable |
$resultBuilderInstantiator, |
|
|
callable |
$entitySavingHelperInstantiator, |
|
|
bool |
$federatedPropertiesEnabled, |
|
|
array |
$sandboxEntityIds |
|
) |
| |
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
callable | $errorReporterInstantiator | |
StatementChangeOpFactory | $statementChangeOpFactory | |
StatementModificationHelper | $modificationHelper | |
StatementGuidParser | $guidParser | |
callable | $resultBuilderInstantiator | |
callable | $entitySavingHelperInstantiator | |
- Note
- Using callable for several arguments because of circular dependency and unability to inject object to constructor
◆ execute()
Wikibase\Repo\Api\SetQualifier::execute |
( |
| ) |
|
◆ factory()
◆ getAllowedParams()
Wikibase\Repo\Api\SetQualifier::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getChangeOp()
Wikibase\Repo\Api\SetQualifier::getChangeOp |
( |
| ) |
|
|
private |
◆ getExamplesMessages()
Wikibase\Repo\Api\SetQualifier::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ isWriteMode()
Wikibase\Repo\Api\SetQualifier::isWriteMode |
( |
| ) |
|
◆ needsToken()
Wikibase\Repo\Api\SetQualifier::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ validateParameters()
Wikibase\Repo\Api\SetQualifier::validateParameters |
( |
array |
$params | ) |
|
|
private |
Checks if the required parameters are set and the ones that make no sense given the snaktype value are not set.
- Parameters
-
◆ validateQualifierHash()
Wikibase\Repo\Api\SetQualifier::validateQualifierHash |
( |
Statement |
$statement, |
|
|
string |
$qualifierHash |
|
) |
| |
|
private |
◆ $entitySavingHelper
Wikibase\Repo\Api\SetQualifier::$entitySavingHelper |
|
private |
◆ $errorReporter
Wikibase\Repo\Api\SetQualifier::$errorReporter |
|
protected |
◆ $guidParser
Wikibase\Repo\Api\SetQualifier::$guidParser |
|
private |
◆ $modificationHelper
Wikibase\Repo\Api\SetQualifier::$modificationHelper |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\SetQualifier::$resultBuilder |
|
private |
◆ $sandboxEntityIds
Wikibase\Repo\Api\SetQualifier::$sandboxEntityIds |
|
private |
◆ $statementChangeOpFactory
Wikibase\Repo\Api\SetQualifier::$statementChangeOpFactory |
|
private |
The documentation for this class was generated from the following file: