PHP 클래스 CRUDlex\UniqueValidator

상속: implements Valdi\Validator\ValidatorInterface
파일 보기 프로젝트 열기: philiplb/crudlex 1 사용 예제들

공개 메소드들

메소드 설명
getInvalidDetails ( )
isValid ( $value, array $parameters )

보호된 메소드들

메소드 설명
isValidUnique ( $value, AbstractData $data, Entity $entity, $field ) : boolean Performs the regular unique validation.
isValidUniqueMany ( array $value, AbstractData $data, Entity $entity, $field ) : boolean Checks whether the unique constraint is valid for a many-to-many field.

메소드 상세

getInvalidDetails() 공개 메소드

public getInvalidDetails ( )

isValid() 공개 메소드

public isValid ( $value, array $parameters )
$parameters array

isValidUnique() 보호된 메소드

Performs the regular unique validation.
protected isValidUnique ( $value, AbstractData $data, Entity $entity, $field ) : boolean
$value the value to validate
$data AbstractData the data instance to validate with
$entity Entity the entity of the field
$field the field to validate
리턴 boolean true if everything is valid

isValidUniqueMany() 보호된 메소드

Checks whether the unique constraint is valid for a many-to-many field.
protected isValidUniqueMany ( array $value, AbstractData $data, Entity $entity, $field ) : boolean
$value array the value to check
$data AbstractData the data to perform the check with
$entity Entity the entity to perform the check on
$field the many field to perform the check on
리턴 boolean true if it is a valid unique many-to-many constraint