Skip to content
Newer
Older
100644 86 lines (77 sloc) 2.24 KB
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
1 <?php
2
06fcab5 @fabpot [Validation] fixed license
fabpot authored Oct 2, 2010
3 /*
64e1cf2 @blue-eyes normalized license messages in PHP files
blue-eyes authored Jan 15, 2011
4 * This file is part of the Symfony package.
06fcab5 @fabpot [Validation] fixed license
fabpot authored Oct 2, 2010
5 *
fec10a4 @fabpot replaced symfony-project.org by symfony.com
fabpot authored Mar 6, 2011
6 * (c) Fabien Potencier <fabien@symfony.com>
06fcab5 @fabpot [Validation] fixed license
fabpot authored Oct 2, 2010
7 *
64e1cf2 @blue-eyes normalized license messages in PHP files
blue-eyes authored Jan 15, 2011
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
06fcab5 @fabpot [Validation] fixed license
fabpot authored Oct 2, 2010
10 */
11
64e1cf2 @blue-eyes normalized license messages in PHP files
blue-eyes authored Jan 15, 2011
12 namespace Symfony\Component\Validator;
13
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
14 use Symfony\Component\Validator\Constraint;
15
16 /**
17 * Validates a given value.
18 *
fec10a4 @fabpot replaced symfony-project.org by symfony.com
fabpot authored Mar 6, 2011
19 * @author Bernhard Schussek <bernhard.schussek@symfony.com>
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
20 *
21 * @api
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
22 */
23 interface ValidatorInterface
24 {
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 15, 2011
25 /**
26 * Validate the given object.
27 *
28 * @param object $object The object to validate
29 * @param array|null $groups The validator groups to use for validating
84089b1 @fabpot [DoctrineBridge] fixed some CS
fabpot authored Dec 13, 2011
30 *
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
31 * @return ConstraintViolationList
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
32 *
33 * @api
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
34 */
a3255a9 @pborreli [Validator] Fixed coding standard
pborreli authored Oct 15, 2010
35 function validate($object, $groups = null);
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
36
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
37 /**
38 * Validate a single property of an object against its current value.
39 *
40 * @param object $object The object to validate
41 * @param string $property The name of the property to validate
42 * @param array|null $groups The validator groups to use for validating
84089b1 @fabpot [DoctrineBridge] fixed some CS
fabpot authored Dec 13, 2011
43 *
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
44 * @return ConstraintViolationList
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
45 *
46 * @api
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
47 */
a3255a9 @pborreli [Validator] Fixed coding standard
pborreli authored Oct 15, 2010
48 function validateProperty($object, $property, $groups = null);
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
49
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
50 /**
51 * Validate a single property of an object against the given value.
52 *
5327365 @pborreli [Phpdoc] Cleaning/fixing
pborreli authored Apr 23, 2011
53 * @param string $class The class on which the property belongs
54 * @param string $property The name of the property to validate
55 * @param string $value
56 * @param array|null $groups The validator groups to use for validating
84089b1 @fabpot [DoctrineBridge] fixed some CS
fabpot authored Dec 13, 2011
57 *
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
58 * @return ConstraintViolationList
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
59 *
60 * @api
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
61 */
a3255a9 @pborreli [Validator] Fixed coding standard
pborreli authored Oct 15, 2010
62 function validatePropertyValue($class, $property, $value, $groups = null);
c56d28d @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored Aug 20, 2010
63
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
64 /**
65 * Validates a given value against a specific Constraint.
66 *
67 * @param mixed $value The value to validate
68 * @param Constraint $constraint The constraint to validate against
69 * @param array|null $groups The validator groups to use for validating
84089b1 @fabpot [DoctrineBridge] fixed some CS
fabpot authored Dec 13, 2011
70 *
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
71 * @return ConstraintViolationList
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
72 *
73 * @api
b309adc @weaverryan [Validator] Adding a significant amount of PHPDoc to the Validator co…
weaverryan authored Jan 16, 2011
74 */
a3255a9 @pborreli [Validator] Fixed coding standard
pborreli authored Oct 15, 2010
75 function validateValue($value, Constraint $constraint, $groups = null);
a9d7bba @webmozart [Form] Reorganized code into "form extensions"
webmozart authored Apr 22, 2011
76
77 /**
78 * Returns the factory for ClassMetadata instances
79 *
80 * @return Mapping\ClassMetadataFactoryInterface
be4f2a0 @fabpot [Validator] tagged the public @api
fabpot authored Jul 20, 2011
81 *
82 * @api
a9d7bba @webmozart [Form] Reorganized code into "form extensions"
webmozart authored Apr 22, 2011
83 */
84 function getMetadataFactory();
2d8d332 @fabpot fixed CS
fabpot authored Jun 8, 2011
85 }
Something went wrong with that request. Please try again.