eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Client\Input\Parser\Content Class Reference

Parser for Version. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Client\Input\Parser\Content:
+ Collaboration diagram for eZ\Publish\Core\REST\Client\Input\Parser\Content:

Public Member Functions

 __construct (ParserTools $parserTools, ContentService $contentService, VersionInfo $versionInfoParser, FieldTypeParser $fieldTypeParser)
 
 parse (array $data, ParsingDispatcher $parsingDispatcher)
 Parse input structure. More...
 

Protected Member Functions

 parseFields (array $rawFieldsData, $contentId)
 Parses the fields from the given $rawFieldsData. More...
 

Protected Attributes

 $contentService
 
 $fieldTypeParser
 
 $parserTools
 
 $versionInfoParser
 

Detailed Description

Parser for Version.

Todo:

Integrate FieldType fromHash()

Caching for extracted embedded objects

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Content::__construct ( ParserTools  $parserTools,
ContentService  $contentService,
VersionInfo  $versionInfoParser,
FieldTypeParser  $fieldTypeParser 
)
Parameters
\eZ\Publish\Core\REST\Common\Input\ParserTools$parserTools
\eZ\Publish\Core\REST\Client\ContentService$contentService
\eZ\Publish\Core\REST\Client\Input\Parser\VersionInfo$versionInfoParser
\eZ\Publish\Core\REST\Common\Input\FieldTypeParser$fieldTypeParser

Member Function Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Content::parse ( array  $data,
ParsingDispatcher  $parsingDispatcher 
)

Parse input structure.

Parameters
array$data
\eZ\Publish\Core\REST\Common\Input\ParsingDispatcher$parsingDispatcher
Todo:
Error handling
Returns
eZ\Publish\Core\REST\Client\Input\Parser\Content::parseFields ( array  $rawFieldsData,
  $contentId 
)
protected

Parses the fields from the given $rawFieldsData.

Parameters
array$rawFieldsData
string$contentId
Returns
[]

Referenced by eZ\Publish\Core\REST\Client\Input\Parser\Content\parse().

Member Data Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Content::$contentService
protected
eZ\Publish\Core\REST\Client\Input\Parser\Content::$fieldTypeParser
protected
eZ\Publish\Core\REST\Client\Input\Parser\Content::$parserTools
protected
eZ\Publish\Core\REST\Client\Input\Parser\Content::$versionInfoParser
protected

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