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

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

Protected Properties

Property Type Description
$contentService eZ\Publish\API\Repository\ContentService
$fieldTypeParser eZ\Publish\Core\REST\Common\Input\FieldTypeParser
$parserTools eZ\Publish\Core\REST\Common\Input\ParserTools
$versionInfoParser VersionInfo VersionInfo parser.

Public Methods

Method Description
__construct ( ParserTools $parserTools, eZ\Publish\API\Repository\ContentService $contentService, VersionInfo $versionInfoParser, FieldTypeParser $fieldTypeParser )
parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\Content\Content Parse input structure.

Protected Methods

Method Description
parseFields ( array $rawFieldsData, string $contentId ) : eZ\Publish\API\Repository\Values\Content\Field[] Parses the fields from the given $rawFieldsData.

Method Details

__construct() public method

public __construct ( ParserTools $parserTools, eZ\Publish\API\Repository\ContentService $contentService, VersionInfo $versionInfoParser, FieldTypeParser $fieldTypeParser )
$parserTools eZ\Publish\Core\REST\Common\Input\ParserTools
$contentService eZ\Publish\API\Repository\ContentService
$versionInfoParser VersionInfo
$fieldTypeParser eZ\Publish\Core\REST\Common\Input\FieldTypeParser

parse() public method

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

parseFields() protected method

Parses the fields from the given $rawFieldsData.
protected parseFields ( array $rawFieldsData, string $contentId ) : eZ\Publish\API\Repository\Values\Content\Field[]
$rawFieldsData array
$contentId string
return eZ\Publish\API\Repository\Values\Content\Field[]

Property Details

$contentService protected property

protected ContentService,eZ\Publish\API\Repository $contentService
return eZ\Publish\API\Repository\ContentService

$fieldTypeParser protected property

protected FieldTypeParser,eZ\Publish\Core\REST\Common\Input $fieldTypeParser
return eZ\Publish\Core\REST\Common\Input\FieldTypeParser

$parserTools protected property

protected ParserTools,eZ\Publish\Core\REST\Common\Input $parserTools
return eZ\Publish\Core\REST\Common\Input\ParserTools

$versionInfoParser protected property

VersionInfo parser.
protected VersionInfo,eZ\Publish\Core\REST\Client\Input\Parser $versionInfoParser
return VersionInfo