original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Checks if the given element contains an uploaded file of the right mime type