/opt/alt/php55/usr/share/pear/Symfony/Component/Validator
NameSizeModeActions
Constraints/-0755rm
Exception/-0755rm
Mapping/-0755rm
Resources/-0755rm
autoloader.php3390644editdlrm
ClassBasedInterface.php5720644editdlrm
Constraint.php67970644editdlrm
ConstraintValidator.php7000644editdlrm
ConstraintValidatorFactory.php22970644editdlrm
ConstraintValidatorFactoryInterface.php7750644editdlrm
ConstraintValidatorInterface.php8990644editdlrm
ConstraintViolation.php43340644editdlrm
ConstraintViolationInterface.php43530644editdlrm
ConstraintViolationList.php32450644editdlrm
ConstraintViolationListInterface.php20080644editdlrm
DefaultTranslator.php52450644editdlrm
ExecutionContext.php84950644editdlrm
ExecutionContextInterface.php123550644editdlrm
GlobalExecutionContextInterface.php19370644editdlrm
GroupSequenceProviderInterface.php5970644editdlrm
MetadataFactoryInterface.php9900644editdlrm
MetadataInterface.php28910644editdlrm
ObjectInitializerInterface.php8170644editdlrm
PropertyMetadataContainerInterface.php12090644editdlrm
PropertyMetadataInterface.php12580644editdlrm
Validation.php10980644editdlrm
ValidationVisitor.php63220644editdlrm
ValidationVisitorInterface.php35480644editdlrm
Validator.php66810644editdlrm
ValidatorBuilder.php100820644editdlrm
ValidatorBuilderInterface.php54990644editdlrm
ValidatorInterface.php35800644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/Validator/ValidationVisitorInterface.php (3548B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; /** * Validates values against constraints defined in {@link MetadataInterface} * instances. * * This interface is an implementation of the Visitor design pattern. A value * is validated by first passing it to the {@link validate} method. That method * will determine the matching {@link MetadataInterface} for validating the * value. It then calls the {@link MetadataInterface::accept} method of that * metadata. accept() does two things: * *
    *
  1. It calls {@link visit} to validate the value against the constraints of * the metadata.
  2. *
  3. It calls accept() on all nested metadata instances with the * corresponding values extracted from the current value. For example, if the * current metadata represents a class and the current value is an object of * that class, the metadata contains nested instances for each property of that * class. It forwards the call to these nested metadata with the values of the * corresponding properties in the original object.
  4. *
* * @author Bernhard Schussek */ interface ValidationVisitorInterface { /** * Validates a value. * * If the value is an array or a traversable object, you can set the * parameter $traverse to true in order to run through * the collection and validate each element. If these elements can be * collections again and you want to traverse them recursively, set the * parameter $deep to true as well. * * If you set $traversable to true, the visitor will * nevertheless try to find metadata for the collection and validate its * constraints. If no such metadata is found, the visitor ignores that and * only iterates the collection. * * If you don't set $traversable to true and the visitor * does not find metadata for the given value, it will fail with an * exception. * * @param mixed $value The value to validate. * @param string $group The validation group to validate. * @param string $propertyPath The current property path in the validation graph. * @param Boolean $traverse Whether to traverse the value if it is traversable. * @param Boolean $deep Whether to traverse nested traversable values recursively. * * @throws Exception\NoSuchMetadataException If no metadata can be found for * the given value. */ public function validate($value, $group, $propertyPath, $traverse = false, $deep = false); /** * Validates a value against the constraints defined in some metadata. * * This method implements the Visitor design pattern. See also * {@link ValidationVisitorInterface}. * * @param MetadataInterface $metadata The metadata holding the constraints. * @param mixed $value The value to validate. * @param string $group The validation group to validate. * @param string $propertyPath The current property path in the validation graph. */ public function visit(MetadataInterface $metadata, $value, $group, $propertyPath); }