Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Validators\DataValueValidator Class Reference

The DataValueValidator class allows the validation of the plain value of a simple DataValues object based on the DataValue's array representation. More...

+ Inheritance diagram for Wikibase\Repo\Validators\DataValueValidator:
+ Collaboration diagram for Wikibase\Repo\Validators\DataValueValidator:

Public Member Functions

 __construct (ValueValidator $validator)
 
 validate ( $value)
 
 setOptions (array $options)
 

Private Attributes

 $validator
 

Detailed Description

The DataValueValidator class allows the validation of the plain value of a simple DataValues object based on the DataValue's array representation.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\DataValueValidator::__construct ( ValueValidator $validator)
Parameters
ValueValidator$validatorThe validator to apply to the given field

Member Function Documentation

◆ setOptions()

Wikibase\Repo\Validators\DataValueValidator::setOptions ( array $options)
See also
ValueValidator::setOptions()
Parameters
array$options

◆ validate()

Wikibase\Repo\Validators\DataValueValidator::validate ( $value)
See also
ValueValidator::validate()
Parameters
DataValue$valueThe value to validate
Exceptions
InvalidArgumentException
Returns
Result

Member Data Documentation

◆ $validator

Wikibase\Repo\Validators\DataValueValidator::$validator
private

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