PHP Class Neos\Media\Validator\ImageSizeValidator

Example: [at]Flow\Validate("$image", type="\Neos\Media\Validator\ImageSizeValidator", options={ "minimumWidth"=150, "maximumResolution"=60000 })
Inheritance: extends Neos\Flow\Validation\Validator\AbstractValidator
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$supportedOptions array

Méthodes protégées

Méthode Description
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

Method Details

isValid() protected méthode

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
Résultat void

validateOptions() protected méthode

protected validateOptions ( ) : void
Résultat void

Property Details

$supportedOptions protected_oe property

protected array $supportedOptions
Résultat array