PHP 클래스 Neos\Neos\Service\Mapping\NodePropertyConverterService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$generatedPropertyMappingConfigurations array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$propertyMapper Neos\Flow\Property\PropertyMapper
$systemLogger Neos\Flow\Log\SystemLoggerInterface
$typesConfiguration array

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

convertValue() 보호된 메소드

protected convertValue ( mixed $propertyValue, string $dataType ) : mixed
$propertyValue mixed
$dataType string
리턴 mixed

createConfiguration() 보호된 메소드

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
리턴 Neos\Flow\Property\PropertyMappingConfigurationInterface

getDefaultValueForProperty() 보호된 메소드

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
리턴 mixed

getPropertiesArray() 공개 메소드

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
리턴 array

getPropertiesJson() 공개 메소드

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

getProperty() 공개 메소드

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
리턴 mixed

setTypeConverterForType() 보호된 메소드

protected setTypeConverterForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $dataType ) : boolean
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
$dataType string
리턴 boolean

setTypeConverterOptionsForType() 보호된 메소드

protected setTypeConverterOptionsForType ( PropertyMappingConfiguration $propertyMappingConfiguration, string $typeConverterClass, string $dataType ) : void
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
$typeConverterClass string
$dataType string
리턴 void

프로퍼티 상세

$generatedPropertyMappingConfigurations 보호되어 있는 프로퍼티

protected array $generatedPropertyMappingConfigurations
리턴 array

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$propertyMapper 보호되어 있는 프로퍼티

protected PropertyMapper,Neos\Flow\Property $propertyMapper
리턴 Neos\Flow\Property\PropertyMapper

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface

$typesConfiguration 보호되어 있는 프로퍼티

protected array $typesConfiguration
리턴 array