/
opt
/
alt
/
php55
/
usr
/
share
/
pear
/
Symfony
/
Component
/
Validator
/
/opt/alt/php55/usr/share/pear/Symfony/Component/Validator
mkdir
upload
Name
Size
Mode
Actions
Constraints/
-
0755
rm
Exception/
-
0755
rm
Mapping/
-
0755
rm
Resources/
-
0755
rm
autoloader.php
339
0644
edit
dl
rm
ClassBasedInterface.php
572
0644
edit
dl
rm
Constraint.php
6797
0644
edit
dl
rm
ConstraintValidator.php
700
0644
edit
dl
rm
ConstraintValidatorFactory.php
2297
0644
edit
dl
rm
ConstraintValidatorFactoryInterface.php
775
0644
edit
dl
rm
ConstraintValidatorInterface.php
899
0644
edit
dl
rm
ConstraintViolation.php
4334
0644
edit
dl
rm
ConstraintViolationInterface.php
4353
0644
edit
dl
rm
ConstraintViolationList.php
3245
0644
edit
dl
rm
ConstraintViolationListInterface.php
2008
0644
edit
dl
rm
DefaultTranslator.php
5245
0644
edit
dl
rm
ExecutionContext.php
8495
0644
edit
dl
rm
ExecutionContextInterface.php
12355
0644
edit
dl
rm
GlobalExecutionContextInterface.php
1937
0644
edit
dl
rm
GroupSequenceProviderInterface.php
597
0644
edit
dl
rm
MetadataFactoryInterface.php
990
0644
edit
dl
rm
MetadataInterface.php
2891
0644
edit
dl
rm
ObjectInitializerInterface.php
817
0644
edit
dl
rm
PropertyMetadataContainerInterface.php
1209
0644
edit
dl
rm
PropertyMetadataInterface.php
1258
0644
edit
dl
rm
Validation.php
1098
0644
edit
dl
rm
ValidationVisitor.php
6322
0644
edit
dl
rm
ValidationVisitorInterface.php
3548
0644
edit
dl
rm
Validator.php
6681
0644
edit
dl
rm
ValidatorBuilder.php
10082
0644
edit
dl
rm
ValidatorBuilderInterface.php
5499
0644
edit
dl
rm
ValidatorInterface.php
3580
0644
edit
dl
rm
Edit:
/opt/alt/php55/usr/share/pear/Symfony/Component/Validator/ValidationVisitorInterface.php
(3548B)
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * 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. <tt>accept()</tt> does two things: * * <ol> * <li>It calls {@link visit} to validate the value against the constraints of * the metadata.</li> * <li>It calls <tt>accept()</tt> 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.</li> * </ol> * * @author Bernhard Schussek <bschussek@gmail.com> */ interface ValidationVisitorInterface { /** * Validates a value. * * If the value is an array or a traversable object, you can set the * parameter <tt>$traverse</tt> to <tt>true</tt> 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 <tt>$deep</tt> to <tt>true</tt> as well. * * If you set <tt>$traversable</tt> to <tt>true</tt>, 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 <tt>$traversable</tt> to <tt>true</tt> 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); }
Save
cmd:
run