Image Class Reference
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]}
Inheritance diagram for Image:
Public Member Functions | |
validate ($value, Message $message, $options=null) | |
Member Function Documentation
validate | ( | $value, | |
Message | $message, | ||
$options = null |
|||
) |
- See also
- ValidateType::validate $options is an associative array with keys 'width' (optional) and 'height' (optional)
Implements ValidateType.