Zend Framework
3.0
|
Public Member Functions | |
__construct ($value=null, $mediaType=null) | |
match ($matchAgainst) | |
Determine if the mediatype value in this header matches the provided criteria. | |
toString () | |
Create a string representation of the header. | |
getFieldName () | |
Get the field name. | |
getFieldValue () | |
Get the field value. | |
setMediaType ($mediaType) | |
Set the media type. | |
getMediaType () | |
Get the media type. | |
setParameters (array $parameters) | |
Set additional content-type parameters. | |
getParameters () | |
Get any additional content-type parameters currently set. | |
setCharset ($charset) | |
Set the content-type character set encoding. | |
getCharset () | |
Get the content-type character set encoding, if any. | |
Static Public Member Functions | |
static | fromString ($headerLine) |
Factory method: create an object from a string representation. | |
Protected Member Functions | |
assembleValue () | |
Assemble the value based on the media type and any available parameters. | |
splitMediaTypesFromString ($criteria) | |
Split comma-separated media types into an array. | |
getMediaTypeObjectFromString ($string) | |
Split a mediatype string into an object with the following parts: | |
validateSubtype ($right, $left) | |
Validate a subtype. | |
validateFormat ($right, $left) | |
Validate the format. | |
validatePartialWildcard ($right, $left) | |
Validate a partial wildcard (i.e., string ending in '*') | |
Protected Attributes | |
$mediaType | |
$parameters = [] | |
$value | |
Exception\InvalidArgumentException |
__construct | ( | $value = null , |
|
$mediaType = null |
|||
) |
|
protected |
Assemble the value based on the media type and any available parameters.
|
static |
Factory method: create an object from a string representation.
string | $headerLine |
Implements HeaderInterface.
getCharset | ( | ) |
Get the content-type character set encoding, if any.
getFieldName | ( | ) |
getFieldValue | ( | ) |
getMediaType | ( | ) |
Get the media type.
|
protected |
Split a mediatype string into an object with the following parts:
string | $string |
getParameters | ( | ) |
Get any additional content-type parameters currently set.
match | ( | $matchAgainst | ) |
Determine if the mediatype value in this header matches the provided criteria.
array | string | $matchAgainst |
setCharset | ( | $charset | ) |
Set the content-type character set encoding.
string | $charset |
setMediaType | ( | $mediaType | ) |
Set the media type.
string | $mediaType |
setParameters | ( | array | $parameters | ) |
Set additional content-type parameters.
array | $parameters |
|
protected |
Split comma-separated media types into an array.
string | $criteria |
toString | ( | ) |
|
protected |
Validate the format.
Validate that the right side format matches what the left side defines.
string | $right | |
string | $left |
|
protected |
Validate a partial wildcard (i.e., string ending in '*')
string | $right | |
string | $left |
|
protected |
Validate a subtype.
stdClass | $right | |
stdClass | $left |
|
protected |
|
protected |
|
protected |