Detailed Description

Image validates an image value.

Configuration examples:

// width exactly 200px, height less than 100px
// arbitrary width, height exactly 300px
ingo herwig

Definition at line 30 of file Image.php.

+ Inheritance diagram for Image:

Public Member Functions

 validate ($value, $options=null, $context=null)

Member Function Documentation

◆ validate()

validate (   $value,
  $options = null,
  $context = null 
See also
ValidateType::validate $options is an associative array with keys 'width' (optional) and 'height' (optional) where each array entry is an array with the size as first value and an boolean indicating if the size should be matched exactly as second value

Implements ValidateType.

Definition at line 38 of file Image.php.