Solar_Filter_ValidateMimeType::validateMimeType()
public
bool
Solar_Filter_ValidateMimeType::validateMimeType
( mixed $value
, array $allowed = 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.