Wikibase
MediaWiki Wikibase extension
Wikibase\Client\DataAccess\SnaksFinder Class Reference

Find Snaks for claims in a given Entity, based on NumericPropertyId. More...

Public Member Functions

 findSnaks (StatementListProvider $statementListProvider, NumericPropertyId $propertyId, array $acceptableRanks=null)
 

Private Member Functions

 getStatementsWithPropertyId (StatementListProvider $statementListProvider, NumericPropertyId $propertyId)
 

Detailed Description

Find Snaks for claims in a given Entity, based on NumericPropertyId.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Member Function Documentation

◆ findSnaks()

Wikibase\Client\DataAccess\SnaksFinder::findSnaks ( StatementListProvider  $statementListProvider,
NumericPropertyId  $propertyId,
array  $acceptableRanks = null 
)
Parameters
StatementListProvider$statementListProvider
NumericPropertyId$propertyIdThe NumericPropertyId for which we want the formatted Snaks
int[] | null$acceptableRanks
Returns
Snak[] List of main snaks, all guaranteed to belong to the same property ID.

◆ getStatementsWithPropertyId()

Wikibase\Client\DataAccess\SnaksFinder::getStatementsWithPropertyId ( StatementListProvider  $statementListProvider,
NumericPropertyId  $propertyId 
)
private
Parameters
StatementListProvider$statementListProvider
NumericPropertyId$propertyId
Returns
StatementList

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