API module for getting claims.
More...
|
| __construct (ApiMain $mainModule, $moduleName, StatementGuidValidator $guidValidator, StatementGuidParser $guidParser, EntityIdParser $idParser, ApiErrorReporter $errorReporter, callable $resultBuilderInstantiator, callable $entityLoadingHelperInstantiator) |
|
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()
Wikibase\Repo\Api\GetClaims::__construct |
( |
ApiMain |
$mainModule, |
|
|
|
$moduleName, |
|
|
StatementGuidValidator |
$guidValidator, |
|
|
StatementGuidParser |
$guidParser, |
|
|
EntityIdParser |
$idParser, |
|
|
ApiErrorReporter |
$errorReporter, |
|
|
callable |
$resultBuilderInstantiator, |
|
|
callable |
$entityLoadingHelperInstantiator |
|
) |
| |
- See also
- ApiBase::__construct
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
StatementGuidValidator | $guidValidator | |
StatementGuidParser | $guidParser | |
EntityIdParser | $idParser | |
ApiErrorReporter | $errorReporter | |
callable | $resultBuilderInstantiator | |
callable | $entityLoadingHelperInstantiator | |
◆ getAllowedParams()
Wikibase\Repo\Api\GetClaims::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getEntityIdFromStatementGuid()
Wikibase\Repo\Api\GetClaims::getEntityIdFromStatementGuid |
( |
|
$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, |
|
|
|
$guid = null |
|
) |
| |
|
private |
- Parameters
-
EntityDocument | $entity | |
string | null | $guid | |
- Returns
- StatementList
◆ 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: