Wikibase
MediaWiki Wikibase extension
|
EntityExistsValidator checks that a given entity exists. More...
Public Member Functions | |
__construct (EntityLookup $entityLookup, $entityType=null) | |
validate ( $value) | |
setOptions (array $options) | |
Private Attributes | |
$entityLookup | |
$entityType | |
EntityExistsValidator checks that a given entity exists.
Wikibase\Repo\Validators\EntityExistsValidator::__construct | ( | EntityLookup | $entityLookup, |
$entityType = null ) |
Wikibase\Repo\Validators\EntityExistsValidator::setOptions | ( | array | $options | ) |
array | $options |
Wikibase\Repo\Validators\EntityExistsValidator::validate | ( | $value | ) |
EntityIdValue | EntityId | $value | The ID to validate |
InvalidArgumentException |
|
private |
|
private |