Wikibase
MediaWiki Wikibase extension
|
A list of snaks, grouped by a certain set of properties, with all snaks of other properties in one “other” group. More...
Public Member Functions | |
getByPropertyId (?PropertyId $certainPropertyId) | |
getOthers () | |
Private Attributes | |
$groups = [] | |
$otherGroup = [] | |
$hasUnknownPropertyId = false | |
A list of snaks, grouped by a certain set of properties, with all snaks of other properties in one “other” group.
For convenience, properties can be specified as null (not known). Snaks are never grouped by such properties, and getting the snaks for them simply returns an empty array.
Wikibase\Lib\Formatters\Reference\ByCertainPropertyIdGrouper::getByPropertyId | ( | ?PropertyId | $certainPropertyId | ) |
InvalidArgumentException | if the property ID is not one of the ones given in the constructor |
Wikibase\Lib\Formatters\Reference\ByCertainPropertyIdGrouper::getOthers | ( | ) |
|
private |
|
private |
|
private |