Wikibase
MediaWiki Wikibase extension
|
Validator for commons media values which checks whether the file in question exists. More...
Public Member Functions | |
__construct (CachingCommonsMediaFileNameLookup $fileNameLookup) | |
validate ( $value) | |
setOptions (array $options) | |
Private Attributes | |
$fileNameLookup | |
Validator for commons media values which checks whether the file in question exists.
Doesn't check whether the name is normalized.
Wikibase\Repo\Validators\CommonsMediaExistsValidator::__construct | ( | CachingCommonsMediaFileNameLookup | $fileNameLookup | ) |
Wikibase\Repo\Validators\CommonsMediaExistsValidator::setOptions | ( | array | $options | ) |
array | $options |
Wikibase\Repo\Validators\CommonsMediaExistsValidator::validate | ( | $value | ) |
StringValue | string | $value |
InvalidArgumentException |
|
private |