blob: 5a6545e5f0c7eb9c2d25a634d972d996873662a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
namespace SMW\DataValues;
/**
* @license GNU GPL v2+
* @since 2.4
*
* @author mwjames
*/
class UniquenessConstraintValue extends BooleanValue {
/**
* @since 2.4
*
* @param string $typeid
*/
public function __construct( $typeid = '' ) {
parent::__construct( '__pvuc' );
}
/**
* @see DataValue::parseUserValue
*
* @param string $value
*/
protected function parseUserValue( $userValue ) {
if ( !$this->isEnabledFeature( SMW_DV_PVUC ) ) {
$this->addErrorMsg(
[
'smw-datavalue-feature-not-supported',
'SMW_DV_PVUC'
]
);
}
parent::parseUserValue( $userValue );
}
}
|