eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Common\Input\FieldTypeParser Class Reference

Public Member Functions

 __construct (ContentService $contentService, ContentTypeService $contentTypeService, FieldTypeService $fieldTypeService, FieldTypeProcessorRegistry $fieldTypeProcessorRegistry)
 
 parseFieldSettings ($fieldTypeIdentifier, $settingsHash)
 Parses the given $settingsHash using the FieldType identified by $fieldTypeIdentifier. More...
 
 parseFieldValue ($contentInfoId, $fieldDefIdentifier, $value)
 Parses the given $value for the field $fieldDefIdentifier in the content identified by $contentInfoId. More...
 
 parseValidatorConfiguration ($fieldTypeIdentifier, $configurationHash)
 Parses the given $configurationHash using the FieldType identified by $fieldTypeIdentifier. More...
 
 parseValue ($fieldTypeIdentifier, $value)
 Parses the given $value using the FieldType identified by $fieldTypeIdentifier. More...
 

Protected Attributes

 $contentService
 
 $contentTypeService
 
 $fieldTypeProcessorRegistry
 
 $fieldTypeService
 

Constructor & Destructor Documentation

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

Member Function Documentation

eZ\Publish\Core\REST\Common\Input\FieldTypeParser::parseFieldSettings (   $fieldTypeIdentifier,
  $settingsHash 
)

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

Parameters
string$fieldTypeIdentifier
mixed$settingsHash
Returns
mixed
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::parseFieldValue (   $contentInfoId,
  $fieldDefIdentifier,
  $value 
)

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

Parameters
string$contentInfoId
string$fieldDefIdentifier
mixed$value
Returns
mixed
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::parseValidatorConfiguration (   $fieldTypeIdentifier,
  $configurationHash 
)

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

Parameters
string$fieldTypeIdentifier
mixed$configurationHash
Returns
mixed
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::parseValue (   $fieldTypeIdentifier,
  $value 
)

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

Parameters
mixed$fieldTypeIdentifier
mixed$value
Returns
mixed

Referenced by eZ\Publish\Core\REST\Common\Input\FieldTypeParser\parseFieldValue().

Member Data Documentation

eZ\Publish\Core\REST\Common\Input\FieldTypeParser::$contentService
protected
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::$contentTypeService
protected
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::$fieldTypeProcessorRegistry
protected
eZ\Publish\Core\REST\Common\Input\FieldTypeParser::$fieldTypeService
protected

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