Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\DataValues\ValueValidators\PatternConstraintValueValidator Class Reference
Collaboration diagram for SMW\DataValues\ValueValidators\PatternConstraintValueValidator:
Collaboration graph
[legend]

Public Member Functions

 __construct (AllowsPatternValueParser $allowsPatternValueParser)
 
 hasConstraintViolation ()
 
 validate ($dataValue)
 

Detailed Description

To suppport regular expressions in connection with the Allows pattern property.

GNU GPL v2+

Since
2.4
Author
mwjames

Constructor & Destructor Documentation

SMW\DataValues\ValueValidators\PatternConstraintValueValidator::__construct ( AllowsPatternValueParser  $allowsPatternValueParser)
Since
2.4
Parameters
AllowsPatternValueParser$allowsPatternValueParser

Member Function Documentation

SMW\DataValues\ValueValidators\PatternConstraintValueValidator::hasConstraintViolation ( )
Since
2.4

Since
2.4
Returns
boolean

Implements SMW\DataValues\ValueValidators\ConstraintValueValidator.

SMW\DataValues\ValueValidators\PatternConstraintValueValidator::validate (   $dataValue)
Since
2.4

Since
2.4
Parameters
DataValue$dataValue

Implements SMW\DataValues\ValueValidators\ConstraintValueValidator.


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