API module for getting claims.
More...
API module for getting claims.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Addshore
◆ __construct()
- See also
- ApiBase::__construct
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
StatementGuidValidator | $guidValidator | |
StatementGuidParser | $guidParser | |
EntityIdParser | $idParser | |
ApiErrorReporter | $errorReporter | |
callable | $resultBuilderInstantiator | |
callable | $entityLoadingHelperInstantiator | |
◆ factory()
◆ getAllowedParams()
Wikibase\Repo\Api\GetClaims::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getEntityIdFromStatementGuid()
Wikibase\Repo\Api\GetClaims::getEntityIdFromStatementGuid |
( |
string | $guid | ) |
|
|
private |
◆ getExamplesMessages()
Wikibase\Repo\Api\GetClaims::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ getIdentifiers()
Wikibase\Repo\Api\GetClaims::getIdentifiers |
( |
array | $params | ) |
|
|
private |
Obtains the id of the entity for which to obtain claims and the claim GUID in case it was also provided.
- Parameters
-
- Returns
- array First element is a prefixed entity id string. Second element is either null or a statements GUID.
◆ getStatements()
Wikibase\Repo\Api\GetClaims::getStatements |
( |
EntityDocument | $entity, |
|
|
?string | $guid ) |
|
private |
◆ newRequestParamsBasedFilter()
Wikibase\Repo\Api\GetClaims::newRequestParamsBasedFilter |
( |
| ) |
|
|
private |
◆ validateParameters()
Wikibase\Repo\Api\GetClaims::validateParameters |
( |
array | $params | ) |
|
|
private |
◆ $entityLoadingHelper
Wikibase\Repo\Api\GetClaims::$entityLoadingHelper |
|
private |
◆ $errorReporter
Wikibase\Repo\Api\GetClaims::$errorReporter |
|
private |
◆ $guidParser
Wikibase\Repo\Api\GetClaims::$guidParser |
|
private |
◆ $guidValidator
Wikibase\Repo\Api\GetClaims::$guidValidator |
|
private |
◆ $idParser
Wikibase\Repo\Api\GetClaims::$idParser |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\GetClaims::$resultBuilder |
|
private |
The documentation for this class was generated from the following file: