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