PHP 클래스 Symfony\Component\Validator\Context\ExecutionContext

또한 보기: ExecutionContextInterface
부터: 2.5
저자: Bernhard Schussek ([email protected])
상속: implements Symfony\Component\Validator\Context\ExecutionContextInterface
파일 보기 프로젝트 열기: symfony/validator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Validator\Validator\ValidatorInterface $validator, mixed $root, Symfony\Component\Translation\TranslatorInterface $translator, string | null $translationDomain = null ) Creates a new execution context.
addViolation ( $message, array $parameters = [] )
buildViolation ( $message, array $parameters = [] )
getClassName ( )
getConstraint ( )
getGroup ( )
getMetadata ( )
getObject ( )
getPropertyName ( )
getPropertyPath ( $subPath = '' )
getRoot ( )
getValidator ( )
getValue ( )
getViolations ( )
isConstraintValidated ( $cacheKey, $constraintHash )
isGroupValidated ( $cacheKey, $groupHash )
isObjectInitialized ( $cacheKey )
markConstraintAsValidated ( $cacheKey, $constraintHash )
markGroupAsValidated ( $cacheKey, $groupHash )
markObjectAsInitialized ( $cacheKey )
setConstraint ( Constraint $constraint )
setGroup ( $group )
setNode ( $value, $object, Symfony\Component\Validator\Mapping\MetadataInterface $metadata = null, $propertyPath )

메소드 상세

__construct() 공개 메소드

Creates a new execution context.
public __construct ( Symfony\Component\Validator\Validator\ValidatorInterface $validator, mixed $root, Symfony\Component\Translation\TranslatorInterface $translator, string | null $translationDomain = null )
$validator Symfony\Component\Validator\Validator\ValidatorInterface The validator
$root mixed The root value of the validated object graph
$translator Symfony\Component\Translation\TranslatorInterface The translator
$translationDomain string | null The translation domain to use for translating violation messages

addViolation() 공개 메소드

public addViolation ( $message, array $parameters = [] )
$parameters array

buildViolation() 공개 메소드

public buildViolation ( $message, array $parameters = [] )
$parameters array

getClassName() 공개 메소드

public getClassName ( )

getConstraint() 공개 메소드

public getConstraint ( )

getGroup() 공개 메소드

public getGroup ( )

getMetadata() 공개 메소드

public getMetadata ( )

getObject() 공개 메소드

public getObject ( )

getPropertyName() 공개 메소드

public getPropertyName ( )

getPropertyPath() 공개 메소드

public getPropertyPath ( $subPath = '' )

getRoot() 공개 메소드

public getRoot ( )

getValidator() 공개 메소드

public getValidator ( )

getValue() 공개 메소드

public getValue ( )

getViolations() 공개 메소드

public getViolations ( )

isConstraintValidated() 공개 메소드

public isConstraintValidated ( $cacheKey, $constraintHash )

isGroupValidated() 공개 메소드

public isGroupValidated ( $cacheKey, $groupHash )

isObjectInitialized() 공개 메소드

public isObjectInitialized ( $cacheKey )

markConstraintAsValidated() 공개 메소드

public markConstraintAsValidated ( $cacheKey, $constraintHash )

markGroupAsValidated() 공개 메소드

public markGroupAsValidated ( $cacheKey, $groupHash )

markObjectAsInitialized() 공개 메소드

public markObjectAsInitialized ( $cacheKey )

setConstraint() 공개 메소드

public setConstraint ( Constraint $constraint )
$constraint Symfony\Component\Validator\Constraint

setGroup() 공개 메소드

public setGroup ( $group )

setNode() 공개 메소드

public setNode ( $value, $object, Symfony\Component\Validator\Mapping\MetadataInterface $metadata = null, $propertyPath )
$metadata Symfony\Component\Validator\Mapping\MetadataInterface