/
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/MetadataInterface.php
(2891B)
<?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; /** * A container for validation metadata. * * The container contains constraints that may belong to different validation * groups. Constraints for a specific group can be fetched by calling * {@link findConstraints}. * * Implement this interface to add validation metadata to your own metadata * layer. Each metadata may have named properties. Each property can be * represented by one or more {@link PropertyMetadataInterface} instances that * are returned by {@link getPropertyMetadata}. Since * <tt>PropertyMetadataInterface</tt> inherits from <tt>MetadataInterface</tt>, * each property may be divided into further properties. * * The {@link accept} method of each metadata implements the Visitor pattern. * The method should forward the call to the visitor's * {@link ValidationVisitorInterface::visit} method and additionally call * <tt>accept()</tt> on all structurally related metadata instances. * * For example, to store constraints for PHP classes and their properties, * create a class <tt>ClassMetadata</tt> (implementing <tt>MetadataInterface</tt>) * and a class <tt>PropertyMetadata</tt> (implementing <tt>PropertyMetadataInterface</tt>). * <tt>ClassMetadata::getPropertyMetadata($property)</tt> returns all * <tt>PropertyMetadata</tt> instances for a property of that class. Its * <tt>accept()</tt>-method simply forwards to <tt>ValidationVisitorInterface::visit()</tt> * and calls <tt>accept()</tt> on all contained <tt>PropertyMetadata</tt> * instances, which themselves call <tt>ValidationVisitorInterface::visit()</tt> * again. * * @author Bernhard Schussek <bschussek@gmail.com> */ interface MetadataInterface { /** * Implementation of the Visitor design pattern. * * Calls {@link ValidationVisitorInterface::visit} and then forwards the * <tt>accept()</tt>-call to all property metadata instances. * * @param ValidationVisitorInterface $visitor The visitor implementing the validation logic. * @param mixed $value The value to validate. * @param string|string[] $group The validation group to validate in. * @param string $propertyPath The current property path in the validation graph. */ public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath); /** * Returns all constraints for a given validation group. * * @param string $group The validation group. * * @return Constraint[] A list of constraint instances. */ public function findConstraints($group); }
Save
cmd:
run