Previous Page
locale()

Solar_Filter_ValidateMimeType
validateMimeType()

Next Class
Solar_Filter_ValidateMin

validateMimeType()

public bool validateMimeType ( mixed $value, array $allowed default NULL )

Validates that the value is formatted as a MIME type.

Parameters

  • (mixed) $value: The value to validate.
  • (array) $allowed: The MIME type must be one of these allowed values; if null, then all values are allowed.

Returns

  • (bool) True if valid, false if not.

Description

Validates that the value is formatted as a MIME type.