PHP 인터페이스 Symfony\Component\Validator\ValidatorInterface

사용 중단: since version 2.5, to be removed in 3.0. Use {@link \Symfony\Component\Validator\Validator\ValidatorInterface} instead.
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 0 사용 예제들

공개 메소드들

메소드 설명
getMetadataFactory ( ) : Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface Returns the factory for ClassMetadata instances
validate ( object $object, array | null $groups = null ) : ConstraintViolationList Validate the given object.
validateProperty ( object $object, string $property, array | null $groups = null ) : ConstraintViolationList Validate a single property of an object against its current value.
validatePropertyValue ( string $class, string $property, string $value, array | null $groups = null ) : ConstraintViolationList Validate a single property of an object against the given value.
validateValue ( mixed $value, Constraint $constraint, array | null $groups = null ) : ConstraintViolationList Validates a given value against a specific Constraint.

메소드 상세

getMetadataFactory() 공개 메소드

Returns the factory for ClassMetadata instances
public getMetadataFactory ( ) : Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
리턴 Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface

validate() 공개 메소드

Validate the given object.
public validate ( object $object, array | null $groups = null ) : ConstraintViolationList
$object object The object to validate
$groups array | null The validator groups to use for validating
리턴 ConstraintViolationList

validateProperty() 공개 메소드

Validate a single property of an object against its current value.
public validateProperty ( object $object, string $property, array | null $groups = null ) : ConstraintViolationList
$object object The object to validate
$property string The name of the property to validate
$groups array | null The validator groups to use for validating
리턴 ConstraintViolationList

validatePropertyValue() 공개 메소드

Validate a single property of an object against the given value.
public validatePropertyValue ( string $class, string $property, string $value, array | null $groups = null ) : ConstraintViolationList
$class string The class on which the property belongs
$property string The name of the property to validate
$value string
$groups array | null The validator groups to use for validating
리턴 ConstraintViolationList

validateValue() 공개 메소드

Validates a given value against a specific Constraint.
public validateValue ( mixed $value, Constraint $constraint, array | null $groups = null ) : ConstraintViolationList
$value mixed The value to validate
$constraint Constraint The constraint to validate against
$groups array | null The validator groups to use for validating
리턴 ConstraintViolationList