eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Common\Input\ParsingDispatcher Class Reference

Parsing dispatcher. More...

Public Member Functions

 __construct (array $parsers=array())
 Construct from optional parsers array. More...
 
 addParser ($contentType, Parser $parser)
 Adds another parser for the given Content Type. More...
 
 parse (array $data, $mediaType)
 Parses the given $data according to $mediaType. More...
 

Protected Attributes

 $parsers = array()
 

Detailed Description

Parsing dispatcher.

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Common\Input\ParsingDispatcher::__construct ( array  $parsers = array())

Construct from optional parsers array.

Parameters
array$parsers

Member Function Documentation

eZ\Publish\Core\REST\Common\Input\ParsingDispatcher::addParser (   $contentType,
Parser  $parser 
)

Adds another parser for the given Content Type.

Parameters
string$contentType
\eZ\Publish\Core\REST\Common\Input\Parser$parser

Referenced by eZ\Publish\Core\REST\Common\Input\ParsingDispatcher\__construct().

Member Data Documentation

eZ\Publish\Core\REST\Common\Input\ParsingDispatcher::$parsers = array()
protected

The documentation for this class was generated from the following file: