API module for creating a reference or setting the value of an existing one.
More...
|
static | factory (ApiMain $mainModule, string $moduleName, DeserializerFactory $deserializerFactory, EntityIdParser $entityIdParser, StatementGuidParser $statementGuidParser, StatementGuidValidator $statementGuidValidator) |
|
API module for creating a reference 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 >
-
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\SetReference::__construct |
( |
ApiMain |
$mainModule, |
|
|
string |
$moduleName, |
|
|
DeserializerFactory |
$deserializerFactory, |
|
|
ApiErrorReporter |
$errorReporter, |
|
|
StatementChangeOpFactory |
$statementChangeOpFactory, |
|
|
StatementModificationHelper |
$modificationHelper, |
|
|
StatementGuidParser |
$guidParser, |
|
|
callable |
$resultBuilderInstantiator, |
|
|
callable |
$entitySavingHelperInstantiator, |
|
|
bool |
$federatedPropertiesEnabled |
|
) |
| |
◆ factory()
static Wikibase\Repo\Api\SetReference::factory |
( |
ApiMain |
$mainModule, |
|
|
string |
$moduleName, |
|
|
DeserializerFactory |
$deserializerFactory, |
|
|
EntityIdParser |
$entityIdParser, |
|
|
StatementGuidParser |
$statementGuidParser, |
|
|
StatementGuidValidator |
$statementGuidValidator |
|
) |
| |
|
static |
◆ getAllowedParams()
Wikibase\Repo\Api\SetReference::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getArrayFromParam()
Wikibase\Repo\Api\SetReference::getArrayFromParam |
( |
string |
$arrayParam, |
|
|
string |
$parameter |
|
) |
| |
|
private |
◆ getChangeOp()
Wikibase\Repo\Api\SetReference::getChangeOp |
( |
Reference |
$reference | ) |
|
|
private |
◆ getExamplesMessages()
Wikibase\Repo\Api\SetReference::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ isWriteMode()
Wikibase\Repo\Api\SetReference::isWriteMode |
( |
| ) |
|
◆ needsToken()
Wikibase\Repo\Api\SetReference::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ validateParameters()
Wikibase\Repo\Api\SetReference::validateParameters |
( |
array |
$params | ) |
|
|
private |
◆ validateReferenceHash()
Wikibase\Repo\Api\SetReference::validateReferenceHash |
( |
Statement |
$statement, |
|
|
string |
$referenceHash |
|
) |
| |
|
private |
◆ $deserializerFactory
Wikibase\Repo\Api\SetReference::$deserializerFactory |
|
private |
◆ $entitySavingHelper
Wikibase\Repo\Api\SetReference::$entitySavingHelper |
|
private |
◆ $errorReporter
Wikibase\Repo\Api\SetReference::$errorReporter |
|
protected |
◆ $guidParser
Wikibase\Repo\Api\SetReference::$guidParser |
|
private |
◆ $modificationHelper
Wikibase\Repo\Api\SetReference::$modificationHelper |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\SetReference::$resultBuilder |
|
private |
◆ $statementChangeOpFactory
Wikibase\Repo\Api\SetReference::$statementChangeOpFactory |
|
private |
The documentation for this class was generated from the following file: