Wikibase
MediaWiki Wikibase extension
|
Validator for interwiki links. More...
Public Member Functions | |
__construct (MediaWikiPageNameNormalizer $mediaWikiPageNameNormalizer, $apiUrl) | |
validate ( $value) | |
setOptions (array $options) | |
Private Member Functions | |
isPageNameExisting ( $pageName) | |
Private Attributes | |
$mediaWikiPageNameNormalizer | |
$apiUrl | |
Validator for interwiki links.
Checks whether the page title exists on the foreign wiki.
Wikibase\Repo\Validators\InterWikiLinkExistsValidator::__construct | ( | MediaWikiPageNameNormalizer | $mediaWikiPageNameNormalizer, |
$apiUrl ) |
MediaWikiPageNameNormalizer | $mediaWikiPageNameNormalizer | |
string | $apiUrl |
|
private |
string | $pageName |
Wikibase\Repo\Validators\InterWikiLinkExistsValidator::setOptions | ( | array | $options | ) |
array | $options |
Wikibase\Repo\Validators\InterWikiLinkExistsValidator::validate | ( | $value | ) |
StringValue | string | $value |
InvalidArgumentException |
|
private |
|
private |