PHP 클래스 eZ\Publish\Core\REST\Common\Input\ParsingDispatcher

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$parsers Parser[] Structure: array( => array( => , … } )

공개 메소드들

메소드 설명
__construct ( array $parsers = [] ) Construct from optional parsers array.
addParser ( string $mediaType, Parser $parser ) 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.

보호된 메소드들

메소드 설명
parseMediaTypeVersion ( string $mediaType ) : string Parses and returns the version from a MediaType.

메소드 상세

__construct() 공개 메소드

Construct from optional parsers array.
public __construct ( array $parsers = [] )
$parsers array

addParser() 공개 메소드

Adds another parser for the given Content Type.
public addParser ( string $mediaType, Parser $parser )
$mediaType string
$parser Parser

parse() 공개 메소드

Parses the given $data according to $mediaType.
public parse ( array $data, string $mediaType ) : eZ\Publish\API\Repository\Values\ValueObject
$data array
$mediaType string
리턴 eZ\Publish\API\Repository\Values\ValueObject

parseMediaTypeVersion() 보호된 메소드

Parses and returns the version from a MediaType.
protected parseMediaTypeVersion ( string $mediaType ) : string
$mediaType string Ex: text/html; version=1.1
리턴 string An array with the mediatype string, stripped from the version, and the version (1.0 by default)

프로퍼티 상세

$parsers 보호되어 있는 프로퍼티

Structure: array( => array( => , … } )
protected Parser[],eZ\Publish\Core\REST\Common\Input $parsers
리턴 Parser[]