UrlValidator checks URLs based on sub-validators for each scheme.
More...
UrlValidator checks URLs based on sub-validators for each scheme.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\UrlValidator::__construct |
( |
array | $validators | ) |
|
Constructs a UrlValidator that checks the given URL schemes.
- Parameters
-
ValueValidator[] | $validators | a map of scheme names (e.g. 'html') to ValueValidators. The special scheme name "*" can be used to specify a validator for other schemes. You may want to use UrlSchemaValidators to create the respective validators conveniently. |
- Exceptions
-
◆ setOptions()
Wikibase\Repo\Validators\UrlValidator::setOptions |
( |
array | $options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\UrlValidator::validate |
( |
| $url | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
- Exceptions
-
- Returns
- Result
◆ $validators
Wikibase\Repo\Validators\UrlValidator::$validators |
|
private |
The documentation for this class was generated from the following file: