PHP 클래스 Neos\Media\Validator\ImageSizeValidator

Example: [at]Flow\Validate("$image", type="\Neos\Media\Validator\ImageSizeValidator", options={ "minimumWidth"=150, "maximumResolution"=60000 })
상속: extends Neos\Flow\Validation\Validator\AbstractValidator
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$supportedOptions array

보호된 메소드들

메소드 설명
isValid ( Neos\Media\Domain\Model\ImageInterface $image ) : void The given $value is valid if it is an \Neos\Media\Domain\Model\ImageInterface of the configured resolution Note: a value of NULL or empty string ('') is considered valid
validateOptions ( ) : void

메소드 상세

isValid() 보호된 메소드

The given $value is valid if it is an \Neos\Media\Domain\Model\ImageInterface of the configured resolution Note: a value of NULL or empty string ('') is considered valid
protected isValid ( Neos\Media\Domain\Model\ImageInterface $image ) : void
$image Neos\Media\Domain\Model\ImageInterface The image that should be validated
리턴 void

validateOptions() 보호된 메소드

protected validateOptions ( ) : void
리턴 void

프로퍼티 상세

$supportedOptions 보호되어 있는 프로퍼티

protected array $supportedOptions
리턴 array