Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\EntityValueUniquenessConstraintChecker Class Reference

Public Member Functions

 __construct (Store $store, IteratorFactory $iteratorFactory)
 
 checkConstraint (DIProperty $property, DataItem $dataItem, RequestOptions $requestOptions)
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\EntityValueUniquenessConstraintChecker::__construct ( Store  $store,
IteratorFactory  $iteratorFactory 
)
Since
3.0
Parameters
SQLStore$store
IteratorFactory$iteratorFactory

Member Function Documentation

◆ checkConstraint()

SMW\SQLStore\EntityValueUniquenessConstraintChecker::checkConstraint ( DIProperty  $property,
DataItem  $dataItem,
RequestOptions  $requestOptions 
)

Find references (all or limited by RequestOptions) for the combination of a property and a value. This can be used to identify uniqueness violations amongst entities where the same value (+property) is assigned to different subjects or it be used to count the cardinality for a specific value representation.

Since
3.0
Parameters
DIProperty$property
DataItem$dataItem
RequestOptions$requestOptions
Returns
Iterator|[]

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

About | General disclaimer | Privacy policy