Detailed Description

Image validates an image value.

Configuration examples:

// width exactly 200px, height less than 100px
image:{"width":[200,1],"height":[100,0]}
// arbitrary width, height exactly 300px
image:{"height":[300,0]}
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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 (   $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.