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

Validator for interwiki links. More...

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

Public Member Functions

 __construct (MediaWikiPageNameNormalizer $mediaWikiPageNameNormalizer, $apiUrl)
 
 validate ( $value)
 
 setOptions (array $options)
 

Private Member Functions

 isPageNameExisting ( $pageName)
 

Private Attributes

 $mediaWikiPageNameNormalizer
 
 $apiUrl
 

Detailed Description

Validator for interwiki links.

Checks whether the page title exists on the foreign wiki.

Author
Jonas Kress

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\InterWikiLinkExistsValidator::__construct ( MediaWikiPageNameNormalizer $mediaWikiPageNameNormalizer,
$apiUrl )
Parameters
MediaWikiPageNameNormalizer$mediaWikiPageNameNormalizer
string$apiUrl

Member Function Documentation

◆ isPageNameExisting()

Wikibase\Repo\Validators\InterWikiLinkExistsValidator::isPageNameExisting ( $pageName)
private
Parameters
string$pageName
Returns
bool

◆ setOptions()

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

◆ validate()

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

Member Data Documentation

◆ $apiUrl

Wikibase\Repo\Validators\InterWikiLinkExistsValidator::$apiUrl
private

◆ $mediaWikiPageNameNormalizer

Wikibase\Repo\Validators\InterWikiLinkExistsValidator::$mediaWikiPageNameNormalizer
private

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