__construct()
fromString()
getCharset()
getFieldName()
getFieldValue()
getMediaType()
getParameters()
match()
setCharset()
setMediaType()
setParameters()
toString()
assembleValue()
getMediaTypeObjectFromString()
splitMediaTypesFromString()
validateFormat()
validatePartialWildcard()
validateSubtype()
$mediaType
$parameters
$value
\Zend\Http\Header\Exception\InvalidArgumentException |
|
|---|---|
| see | \Zend\Http\Header\http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 |
__construct($value, $mediaType)
fromString(string $headerLine) : \Zend\Http\Header\self
string
\Zend\Http\Header\Exception\InvalidArgumentException |
If the header does not match RFC 2616 definition. |
|---|
\Zend\Http\Header\selfgetCharset() : null | string
nullstring
getFieldName() : string
stringgetFieldValue() : string
stringgetMediaType() : string
stringgetParameters() : array
arraymatch(array | string $matchAgainst) : string | bool
arraystring
stringboolMatched value or falsesetCharset(string $charset) : \Zend\Http\Header\self
string
\Zend\Http\Header\selfsetMediaType(string $mediaType) : \Zend\Http\Header\self
string
\Zend\Http\Header\selfsetParameters(array $parameters) : \Zend\Http\Header\self
array
\Zend\Http\Header\selftoString() : string
Returns in form of "NAME: VALUE"
stringassembleValue() : string
stringgetMediaTypeObjectFromString(string $string) : \stdClass
splitMediaTypesFromString(string $criteria) : array
string
arrayvalidateFormat(string $right, string $left) : bool
Validate that the right side format matches what the left side defines.
string
string
boolvalidatePartialWildcard(string $right, string $left) : bool
string
string
bool$mediaType : string
$parameters : array
$value : string