Property | Type | Description | |
---|---|---|---|
$parsers | Structure:
array(
|
Method | Description | |
---|---|---|
__construct ( array $parsers = [] ) | Construct from optional parsers array. | |
addParser ( string $mediaType, |
Adds another parser for the given Content Type. | |
parse ( array $data, string $mediaType ) : eZ\Publish\API\Repository\Values\ValueObject | Parses the given $data according to $mediaType. |
Method | Description | |
---|---|---|
parseMediaTypeVersion ( string $mediaType ) : string | Parses and returns the version from a MediaType. |
public __construct ( array $parsers = [] ) | ||
$parsers | array |
protected parseMediaTypeVersion ( string $mediaType ) : string | ||
$mediaType | string | Ex: text/html; version=1.1 |
return | string | An array with the mediatype string, stripped from the version, and the version (1.0 by default) |