PHP 클래스 Neos\Neos\TypeConverter\EntityToIdentityConverter

상속: extends Neos\Flow\Property\TypeConverter\AbstractTypeConverter
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$priority integer The priority for this converter.
$sourceTypes array The source types this converter can convert.
$targetType string The target type this converter can convert to.

공개 메소드들

메소드 설명
canConvertFrom ( object $source, string $targetType ) : boolean Check if the given object has an identity.
convertFrom ( object $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array Converts the given source object to an array containing the type and identity.

메소드 상세

canConvertFrom() 공개 메소드

Check if the given object has an identity.
public canConvertFrom ( object $source, string $targetType ) : boolean
$source object the source data
$targetType string the type to convert to.
리턴 boolean TRUE if this TypeConverter can convert from $source to $targetType, FALSE otherwise.

convertFrom() 공개 메소드

Converts the given source object to an array containing the type and identity.
public convertFrom ( object $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source object
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 array

프로퍼티 상세

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

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

The priority for this converter.
protected int $priority
리턴 integer

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

The source types this converter can convert.
protected array $sourceTypes
리턴 array

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

The target type this converter can convert to.
protected string $targetType
리턴 string