Wikibase
MediaWiki Wikibase extension
|
A filter that only accepts statements with specific property data types, and rejects all other property data types. More...
Public Member Functions | |
__construct (PropertyDataTypeLookup $dataTypeLookup, $dataTypes) | |
statementMatches (Statement $statement) | |
Public Attributes | |
const | FILTER_TYPE = 'dataType' |
Private Attributes | |
$dataTypeLookup | |
$dataTypes | |
A filter that only accepts statements with specific property data types, and rejects all other property data types.
Wikibase\DataModel\Services\Statement\Filter\DataTypeStatementFilter::__construct | ( | PropertyDataTypeLookup | $dataTypeLookup, |
$dataTypes ) |
PropertyDataTypeLookup | $dataTypeLookup | |
string[] | string | $dataTypes | One or more property data type identifiers. |
Wikibase\DataModel\Services\Statement\Filter\DataTypeStatementFilter::statementMatches | ( | Statement | $statement | ) |
Statement | $statement |
Implements Wikibase\DataModel\Statement\StatementFilter.
|
private |
|
private |
const Wikibase\DataModel\Services\Statement\Filter\DataTypeStatementFilter::FILTER_TYPE = 'dataType' |