Class

eZ\Publish\Core\REST\Common\Input\FieldTypeParser

class FieldTypeParser

Methods

__construct(ContentService $contentService, ContentTypeService $contentTypeService, FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry)

mixed parseFieldValue(string $contentInfoId, string $fieldDefIdentifier, mixed $value)

Parses the given $value for the field $fieldDefIdentifier in the content identified by $contentInfoId.

mixed parseValue(mixed $fieldTypeIdentifier, mixed $value)

Parses the given $value using the FieldType identified by $fieldTypeIdentifier.

mixed parseFieldSettings(string $fieldTypeIdentifier, mixed $settingsHash)

Parses the given $settingsHash using the FieldType identified by $fieldTypeIdentifier.

mixed parseValidatorConfiguration(string $fieldTypeIdentifier, mixed $configurationHash)

Parses the given $configurationHash using the FieldType identified by $fieldTypeIdentifier.

Details

at line 44
public __construct(ContentService $contentService, ContentTypeService $contentTypeService, FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry)

Parameters

ContentService $contentService
ContentTypeService $contentTypeService
FieldTypeService $fieldTypeService
FieldTypeProcessorRegistry $fieldTypeProcessorRegistry

at line 66
public mixed parseFieldValue(string $contentInfoId, string $fieldDefIdentifier, mixed $value)

Parses the given $value for the field $fieldDefIdentifier in the content identified by $contentInfoId.

Parameters

string $contentInfoId
string $fieldDefIdentifier
mixed $value

Return Value

mixed

at line 85
public mixed parseValue(mixed $fieldTypeIdentifier, mixed $value)

Parses the given $value using the FieldType identified by $fieldTypeIdentifier.

Parameters

mixed $fieldTypeIdentifier
mixed $value

Return Value

mixed

at line 106
public mixed parseFieldSettings(string $fieldTypeIdentifier, mixed $settingsHash)

Parses the given $settingsHash using the FieldType identified by $fieldTypeIdentifier.

Parameters

string $fieldTypeIdentifier
mixed $settingsHash

Return Value

mixed

at line 127
public mixed parseValidatorConfiguration(string $fieldTypeIdentifier, mixed $configurationHash)

Parses the given $configurationHash using the FieldType identified by $fieldTypeIdentifier.

Parameters

string $fieldTypeIdentifier
mixed $configurationHash

Return Value

mixed