This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator/Constraints
John Wards d96e2c5d79 [Validator] Adding support for Closure in CallbackValidator
Usage:
$formBuilder = $this->get('form.factory')
            ->createBuilder('form');
$formBuilder->setAttribute('validation_constraint', new Callback(array("methods"=>array(
    'validate' => function ($data, $context) use ($elements) {
       // logic to add violations depending on the elements
    }
))));
2011-05-10 12:12:18 +01:00
..
All.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
AllValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Blank.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
BlankValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Callback.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
CallbackValidator.php [Validator] Adding support for Closure in CallbackValidator 2011-05-10 12:12:18 +01:00
Choice.php [Validator] Modifying Choice message and adding a different multiple message 2011-04-21 20:05:13 -05:00
ChoiceValidator.php [Validator] Modifying Choice message and adding a different multiple message 2011-04-21 20:05:13 -05:00
Collection.php [Validator] made fields the default option for Collection constraint 2011-03-31 15:36:04 +02:00
CollectionValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Country.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
CountryValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Date.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
DateTime.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
DateTimeValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
DateValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Email.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
EmailValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
False.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
FalseValidator.php removed Assert prefix from all constraints, renamed annotation namespace to assert 2011-03-26 15:26:05 +01:00
File.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
FileValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
GroupSequence.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Image.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Ip.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
IpValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Language.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
LanguageValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Locale.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
LocaleValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Max.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
MaxLength.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
MaxLengthValidator.php Method exists does not work if you append the () to the method name, thus this never words for objects that actually have the __toString method. Removed the erroneous () so that this works as it appears to have been intended. 2011-05-06 13:20:29 -07:00
MaxValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Min.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
MinLength.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
MinLengthValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
MinValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
NotBlank.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
NotBlankValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
NotNull.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
NotNullValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Null.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
NullValidator.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Regex.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
RegexValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Set.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Time.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
TimeValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
True.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
TrueValidator.php removed Assert prefix from all constraints, renamed annotation namespace to assert 2011-03-26 15:26:05 +01:00
Type.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
TypeValidator.php removed Assert prefix from all constraints, renamed annotation namespace to assert 2011-03-26 15:26:05 +01:00
Url.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00
UrlValidator.php [Validator] Fixing method_exists 2011-05-07 19:08:30 +00:00
Valid.php [Validator] renamed methods that do not follow CS 2011-03-30 23:18:20 +02:00