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

Parser for Relation. More...

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

Public Member Functions

 __construct (ContentService $contentService)
 
 parse (array $data, ParsingDispatcher $parsingDispatcher)
 Parse input structure. More...
 

Protected Member Functions

 convertRelationType ($stringType)
 Converts the string representation of the relation type to its constant. More...
 

Protected Attributes

 $contentService
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Relation::__construct ( ContentService  $contentService)
Parameters
\eZ\Publish\Core\REST\Input\ContentService$contentService

Member Function Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Relation::convertRelationType (   $stringType)
protected

Converts the string representation of the relation type to its constant.

Parameters
string$stringType
Returns
int

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

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

Parse input structure.

Parameters
array$data
\eZ\Publish\Core\REST\Common\Input\ParsingDispatcher$parsingDispatcher
Returns
Todo:

Error handling

Should the related ContentInfo structs really be loaded here or do we need lazy loading for this?

Member Data Documentation

eZ\Publish\Core\REST\Client\Input\Parser\Relation::$contentService
protected

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