function _ruleCheckMimeType($elementValue, $mimeType)
    {
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        if (is_array($mimeType)) {
            return in_array($elementValue['type'], $mimeType);
        }
        return $elementValue['type'] == $mimeType;
    }
function _ruleCheckMimeType($elementValue, $mimeType)
    {
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        if (is_array($mimeType)) {
            return in_array($elementValue['type'], $mimeType);
        }
        return $elementValue['type'] == $mimeType;
    }
function _ruleCheckMimeType ( $ elementValue , $ mimeType ) { if ( ! HTML_QuickForm_file :: _ruleIsUploadedFile ( $ elementValue ) ) { return true ; } if ( is_array ( $ mimeType ) ) { return in_array ( $ elementValue [ 'type' ] , $ mimeType ) ; } return $ elementValue [ 'type' ] == $ mimeType ; }
Checks if the given element contains an uploaded file of the right mime type

@param     array     Uploaded file info (from $_FILES)
@param     mixed     Mime Type (can be an array of allowed types)
@access    private
@return    bool      true if mimetype is correct, false otherwise
Checks if the given element contains an uploaded file of the right mime type