PHP Class Neos\Neos\Service\Mapping\NodePropertyConverterService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$generatedPropertyMappingConfigurations array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$propertyMapper Neos\Flow\Property\PropertyMapper
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$typesConfiguration array

Méthodes publiques

Méthode Description
getPropertiesArray ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Get all properties reduced to simple type (no objects) representations in an array
getPropertiesJson ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string Get all properties as JSON encoded string representation
getProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : mixed Get a single property reduced to a simple type (no objects) representation

Méthodes protégées

Méthode Description
convertValue ( mixed $propertyValue, string $dataType ) : mixed
createConfiguration ( string $dataType ) : Neos\Flow\Property\PropertyMappingConfigurationInterface Create a property mapping configuration for the given dataType to convert a Node property value from the given dataType to a simple type.
getDefaultValueForProperty ( NodeType $nodeType, string $propertyName ) : mixed Tries to find a default value for the given property trying: 1) The specific property configuration for the given NodeType 2) The generic configuration for the property type in setings.
setTypeConverterForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $dataType ) : boolean
setTypeConverterOptionsForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $typeConverterClass, string $dataType ) : void

Method Details

convertValue() protected méthode

protected convertValue ( mixed $propertyValue, string $dataType ) : mixed
$propertyValue mixed
$dataType string
Résultat mixed

createConfiguration() protected méthode

Create a property mapping configuration for the given dataType to convert a Node property value from the given dataType to a simple type.
protected createConfiguration ( string $dataType ) : Neos\Flow\Property\PropertyMappingConfigurationInterface
$dataType string
Résultat Neos\Flow\Property\PropertyMappingConfigurationInterface

getDefaultValueForProperty() protected méthode

Tries to find a default value for the given property trying: 1) The specific property configuration for the given NodeType 2) The generic configuration for the property type in setings.
protected getDefaultValueForProperty ( NodeType $nodeType, string $propertyName ) : mixed
$nodeType Neos\ContentRepository\Domain\Model\NodeType
$propertyName string
Résultat mixed

getPropertiesArray() public méthode

Get all properties reduced to simple type (no objects) representations in an array
public getPropertiesArray ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat array

getPropertiesJson() public méthode

Get all properties as JSON encoded string representation
public getPropertiesJson ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat string

getProperty() public méthode

Get a single property reduced to a simple type (no objects) representation
public getProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : mixed
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Résultat mixed

setTypeConverterForType() protected méthode

protected setTypeConverterForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $dataType ) : boolean
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
$dataType string
Résultat boolean

setTypeConverterOptionsForType() protected méthode

protected setTypeConverterOptionsForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $typeConverterClass, string $dataType ) : void
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
$typeConverterClass string
$dataType string
Résultat void

Property Details

$generatedPropertyMappingConfigurations protected_oe property

protected array $generatedPropertyMappingConfigurations
Résultat array

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$propertyMapper protected_oe property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Résultat Neos\Flow\Property\PropertyMapper

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface

$typesConfiguration protected_oe property

protected array $typesConfiguration
Résultat array