PHP Class eZ\Publish\Core\REST\Client\Input\Parser\Relation

Inheritance: extends eZ\Publish\Core\REST\Common\Input\BaseParser
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentService eZ\Publish\Core\REST\Input\ContentService Content Service.

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentService $contentService )
parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\Relation\Version Parse input structure.

Protected Methods

Method Description
convertRelationType ( string $stringType ) : integer Converts the string representation of the relation type to its constant.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\ContentService $contentService )
$contentService eZ\Publish\API\Repository\ContentService

convertRelationType() protected method

Converts the string representation of the relation type to its constant.
protected convertRelationType ( string $stringType ) : integer
$stringType string
return integer

parse() public method

Parse input structure.
public parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\Relation\Version
$data array
$parsingDispatcher eZ\Publish\Core\REST\Common\Input\ParsingDispatcher
return eZ\Publish\API\Repository\Values\Relation\Version

Property Details

$contentService protected property

Content Service.
protected ContentService,eZ\Publish\Core\REST\Input $contentService
return eZ\Publish\Core\REST\Input\ContentService