Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Validators\WikiLinkExistsValidator Class Reference

Validator for wiki links. More...

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

Public Member Functions

 __construct ( $namespace)
 
 validate ( $value)
 
 setOptions (array $options)
 

Private Attributes

 $namespace
 

Detailed Description

Validator for wiki links.

Checks whether the page title exists.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\WikiLinkExistsValidator::__construct (   $namespace)
Parameters
int$namespace

Member Function Documentation

◆ setOptions()

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

◆ validate()

Wikibase\Repo\Validators\WikiLinkExistsValidator::validate (   $value)
See also
ValueValidator::validate()
Parameters
StringValue | string$value
Returns
Result
Exceptions
InvalidArgumentException

Member Data Documentation

◆ $namespace

Wikibase\Repo\Validators\WikiLinkExistsValidator::$namespace
private

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