Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter Class Reference

A filter that only accepts statements with specific property ids, and rejects all other properties. More...

+ Inheritance diagram for Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter:
+ Collaboration diagram for Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter:

Public Member Functions

 __construct ( $propertyIds)
 
 statementMatches (Statement $statement)
 

Public Attributes

const FILTER_TYPE = 'propertySet'
 

Private Attributes

 $propertyIds
 

Detailed Description

A filter that only accepts statements with specific property ids, and rejects all other properties.

Since
3.2
Author
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter::__construct ( $propertyIds)
Parameters
string[] | string$propertyIdsOne or more property id serializations.

Member Function Documentation

◆ statementMatches()

Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter::statementMatches ( Statement $statement)
See also
StatementFilter::statementMatches
Parameters
Statement$statement
Returns
bool

Implements Wikibase\DataModel\Statement\StatementFilter.

Member Data Documentation

◆ $propertyIds

Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter::$propertyIds
private

◆ FILTER_TYPE

const Wikibase\DataModel\Services\Statement\Filter\PropertySetStatementFilter::FILTER_TYPE = 'propertySet'
Since
3.3

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