Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate Class Reference

Parser for FieldDefinitionUpdate. More...

Inheritance diagram for eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate:

## Public Member Functions
| __construct (ContentTypeService $contentTypeService, FieldTypeParser $fieldTypeParser, ParserTools $parserTools)
| Construct. More...
| parse (array $data, ParsingDispatcher $parsingDispatcher)
| Parse input structure. More...
Public Member Functions inherited from eZ\Publish\Core\REST\Common\Input\BaseParser
| setRequestParser (RequestParser $requestParser)

## Protected Member Functions
| getFieldDefinition (array $data)
| Returns field definition by 'typeFieldDefinitionDraft' pattern URL. More...

## Protected Attributes
| $contentTypeService
| $fieldTypeParser
| $parserTools
Protected Attributes inherited from eZ\Publish\Core\REST\Common\Input\BaseParser
| $requestParser

## Detailed Description

Parser for FieldDefinitionUpdate.

Definition at line 19 of file FieldDefinitionUpdate.php.

## Constructor & Destructor Documentation

## ◆ __construct()

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::__construct | ( | ContentTypeService | $contentTypeService,
|  | FieldTypeParser | $fieldTypeParser,
|  | ParserTools | $parserTools
| ) |  |

Construct.

Parameters

  \eZ\Publish\API\Repository\ContentTypeService | $contentTypeService |
  \eZ\Publish\Core\REST\Common\Input\ParserTools | $parserTools |

Definition at line 48 of file FieldDefinitionUpdate.php.

References eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\$contentTypeService, eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\$fieldTypeParser, and eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\$parserTools.

## Member Function Documentation

## ◆ getFieldDefinition()

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::getFieldDefinition | ( | array | $data | ) |
| protected

Returns field definition by 'typeFieldDefinitionDraft' pattern URL.

Assumes given $data array has '__url' element set.

Todo:
  depends on temporary solution to give parser access to the URL

See also
  \eZ\Publish\Core\REST\Server\Controller\ContentType::updateFieldDefinition

Exceptions

Definition at line 161 of file FieldDefinitionUpdate.php.

Referenced by eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\parse().

## ◆ parse()

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::parse | ( | array | $data,
|  | ParsingDispatcher | $parsingDispatcher
| ) |  |

Parse input structure.

Parameters

  array | $data |
  \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher | $parsingDispatcher |

Returns
  \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct

Definition at line 63 of file FieldDefinitionUpdate.php.

References eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\getFieldDefinition().

## Member Data Documentation

## ◆ $contentTypeService

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::$contentTypeService
| protected

Definition at line 26 of file FieldDefinitionUpdate.php.

Referenced by eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\__construct().

## ◆ $fieldTypeParser

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::$fieldTypeParser
| protected

Definition at line 33 of file FieldDefinitionUpdate.php.

Referenced by eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\__construct().

## ◆ $parserTools

eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate::$parserTools
| protected

Definition at line 40 of file FieldDefinitionUpdate.php.

Referenced by eZ\Publish\Core\REST\Server\Input\Parser\FieldDefinitionUpdate\__construct().

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

- FieldDefinitionUpdate.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.