39     if (strlen($value) == 0) {
 
   43     $imgWidth = isset($options[
'width']) ? $options[
'width'] : 
false;
 
   44     $imgHeight = isset($options[
'height']) ? $options[
'height'] : 
false;
 
   46     if ($imgWidth === 
false && $imgHeight === 
false) {
 
   52     $absValue = WCMF_BASE.$value;
 
   53     $value = $fileUtil->realpath(dirname($absValue)).
'/'.basename($absValue);
 
   56     if (!$graphicsUtil->isImage($value)) {
 
   61     if ($imgWidth !== 
false) {
 
   62       $checkWidth = $graphicsUtil->isValidImageWidth($value, $imgWidth[0], $imgWidth[1]);
 
   67     if ($imgHeight !== 
false) {
 
   68       $checkHeight = $graphicsUtil->isValidImageHeight($value, $imgHeight[0], $imgHeight[1]);
 
   73     if(!($checkWidth && $checkHeight)) {
 
ValidateType defines the interface for all validator classes. 
Message is used to get localized messages to be used in the user interface. 
Image validates an image value. 
validate($value, Message $message, $options=null)
GraphicsUtil provides support for graphic manipulation. 
FileUtil provides basic support for file functionality like HTTP file upload.