PHP Class eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate

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

Protected Properties

Property Type Description
$contentTypeService eZ\Publish\API\Repository\ContentTypeService ContentType service.
$fieldTypeParser eZ\Publish\Core\REST\Common\Input\FieldTypeParser FieldType parser.
$parserTools eZ\Publish\Core\REST\Common\Input\ParserTools Parser tools.

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentTypeService $contentTypeService, FieldTypeParser $fieldTypeParser, ParserTools $parserTools ) Construct.
parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct Parse input structure.

Protected Methods

Method Description
getFieldDefinition ( array $data ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition Returns field definition by 'typeFieldDefinitionDraft' pattern URL.

Method Details

__construct() public method

Construct.
public __construct ( eZ\Publish\API\Repository\ContentTypeService $contentTypeService, FieldTypeParser $fieldTypeParser, ParserTools $parserTools )
$contentTypeService eZ\Publish\API\Repository\ContentTypeService
$fieldTypeParser eZ\Publish\Core\REST\Common\Input\FieldTypeParser
$parserTools eZ\Publish\Core\REST\Common\Input\ParserTools

getFieldDefinition() protected method

Assumes given $data array has '__url' element set.
See also: eZ\Publish\Core\REST\Server\Controller\ContentType::updateFieldDefinition
protected getFieldDefinition ( array $data ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$data array
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

parse() public method

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

Property Details

$contentTypeService protected property

ContentType service.
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
return eZ\Publish\API\Repository\ContentTypeService

$fieldTypeParser protected property

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

$parserTools protected property

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