Wikibase
MediaWiki Wikibase extension
|
Factory for a StatementGrouper. More...
Public Member Functions | |
__construct (array $specifications, PropertyDataTypeLookup $dataTypeLookup, StatementGuidParser $statementGuidParser) | |
getStatementGrouper () | |
Private Member Functions | |
newFilteringStatementGrouper (array $filterSpecs) | |
newStatementFilter (array $spec) | |
requireField (array $spec, $field) | |
Private Attributes | |
$specifications | |
$dataTypeLookup | |
$statementGuidParser | |
Factory for a StatementGrouper.
The grouper is instantiated based on a specification array that has the following form:
[ 'item' => [ 'statements' => null, 'example' => [ 'type' => 'propertySet', 'propertyIds' => [ 'P1' ], ], 'identifiers' => [ 'type' => 'dataType', 'dataTypes' => [ 'external-id' ], ], ], 'property' => [ ], ],
Wikibase\Repo\StatementGrouperBuilder::__construct | ( | array | $specifications, |
PropertyDataTypeLookup | $dataTypeLookup, | ||
StatementGuidParser | $statementGuidParser ) |
array[] | $specifications | See the class level documentation for details. |
PropertyDataTypeLookup | $dataTypeLookup | |
StatementGuidParser | $statementGuidParser |
Wikibase\Repo\StatementGrouperBuilder::getStatementGrouper | ( | ) |
InvalidArgumentException |
|
private |
array[] | $filterSpecs |
InvalidArgumentException |
|
private |
array | $spec |
InvalidArgumentException |
|
private |
array | $spec | |
string | $field |
InvalidArgumentException |
|
private |
|
private |
|
private |