final class Validation in Plug 7
Entry point for the Validator component.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- class \Symfony\Component\Validator\Validation
Expanded class hierarchy of Validation
135 files declare their use of Validation
- AbstractConstraintValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractConstraintValidatorTest.php - AllValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AllValidatorTest.php - BlankValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ BlankValidatorTest.php - CallbackValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CallbackValidatorTest.php - CardSchemeValidatorTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CardSchemeValidatorTest.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validation.php, line 19
Namespace
Symfony\Component\ValidatorView source
final class Validation {
/**
* The Validator API provided by Symfony 2.4 and older.
*/
const API_VERSION_2_4 = 1;
/**
* The Validator API provided by Symfony 2.5 and newer.
*/
const API_VERSION_2_5 = 2;
/**
* The Validator API provided by Symfony 2.5 and newer with a backwards
* compatibility layer for 2.4 and older.
*/
const API_VERSION_2_5_BC = 3;
/**
* Creates a new validator.
*
* If you want to configure the validator, use
* {@link createValidatorBuilder()} instead.
*
* @return ValidatorInterface The new validator.
*/
public static function createValidator() {
return self::createValidatorBuilder()
->getValidator();
}
/**
* Creates a configurable builder for validator objects.
*
* @return ValidatorBuilderInterface The new builder.
*/
public static function createValidatorBuilder() {
return new ValidatorBuilder();
}
/**
* This class cannot be instantiated.
*/
private function __construct() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Validation:: |
constant | The Validator API provided by Symfony 2.4 and older. | ||
Validation:: |
constant | The Validator API provided by Symfony 2.5 and newer. | ||
Validation:: |
constant | The Validator API provided by Symfony 2.5 and newer with a backwards compatibility layer for 2.4 and older. | ||
Validation:: |
public static | function | Creates a new validator. | |
Validation:: |
public static | function | Creates a configurable builder for validator objects. | |
Validation:: |
private | function | This class cannot be instantiated. |