Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\DataAccess\SnaksFinder Class Reference

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

Public Member Functions

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

Private Member Functions

 getStatementsWithPropertyId (StatementListProvider $statementListProvider, PropertyId $propertyId)
 

Detailed Description

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

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

Member Function Documentation

◆ findSnaks()

Wikibase\Client\DataAccess\SnaksFinder::findSnaks ( StatementListProvider  $statementListProvider,
PropertyId  $propertyId,
array  $acceptableRanks = null 
)
Parameters
StatementListProvider$statementListProvider
PropertyId$propertyIdThe PropertyId 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,
PropertyId  $propertyId 
)
private
Parameters
StatementListProvider$statementListProvider
PropertyId$propertyId
Returns
StatementList

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