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

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$contentService eZ\Publish\API\Repository\ContentService
$contentTypeService eZ\Publish\API\Repository\ContentTypeService
$fieldTypeProcessorRegistry eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry
$fieldTypeService eZ\Publish\API\Repository\FieldTypeService

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry )
parseFieldSettings ( string $fieldTypeIdentifier, mixed $settingsHash ) : mixed Parses the given $settingsHash using the FieldType identified by $fieldTypeIdentifier.
parseFieldValue ( string $contentInfoId, string $fieldDefIdentifier, mixed $value ) : mixed Parses the given $value for the field $fieldDefIdentifier in the content identified by $contentInfoId.
parseValidatorConfiguration ( string $fieldTypeIdentifier, mixed $configurationHash ) : mixed Parses the given $configurationHash using the FieldType identified by $fieldTypeIdentifier.
parseValue ( mixed $fieldTypeIdentifier, mixed $value ) : mixed Parses the given $value using the FieldType identified by $fieldTypeIdentifier.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry )
$contentService eZ\Publish\API\Repository\ContentService
$contentTypeService eZ\Publish\API\Repository\ContentTypeService
$fieldTypeService eZ\Publish\API\Repository\FieldTypeService
$fieldTypeProcessorRegistry eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry

parseFieldSettings() public method

Parses the given $settingsHash using the FieldType identified by $fieldTypeIdentifier.
public parseFieldSettings ( string $fieldTypeIdentifier, mixed $settingsHash ) : mixed
$fieldTypeIdentifier string
$settingsHash mixed
return mixed

parseFieldValue() public method

Parses the given $value for the field $fieldDefIdentifier in the content identified by $contentInfoId.
public parseFieldValue ( string $contentInfoId, string $fieldDefIdentifier, mixed $value ) : mixed
$contentInfoId string
$fieldDefIdentifier string
$value mixed
return mixed

parseValidatorConfiguration() public method

Parses the given $configurationHash using the FieldType identified by $fieldTypeIdentifier.
public parseValidatorConfiguration ( string $fieldTypeIdentifier, mixed $configurationHash ) : mixed
$fieldTypeIdentifier string
$configurationHash mixed
return mixed

parseValue() public method

Parses the given $value using the FieldType identified by $fieldTypeIdentifier.
public parseValue ( mixed $fieldTypeIdentifier, mixed $value ) : mixed
$fieldTypeIdentifier mixed
$value mixed
return mixed

Property Details

$contentService protected_oe property

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

$contentTypeService protected_oe property

protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
return eZ\Publish\API\Repository\ContentTypeService

$fieldTypeProcessorRegistry protected_oe property

protected FieldTypeProcessorRegistry,eZ\Publish\Core\REST\Common $fieldTypeProcessorRegistry
return eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry

$fieldTypeService protected_oe property

protected FieldTypeService,eZ\Publish\API\Repository $fieldTypeService
return eZ\Publish\API\Repository\FieldTypeService