PHP 클래스 Neos\Flow\Property\TypeConverter\AbstractTypeConverter

- set $sourceTypes - set $targetType - set $priority - implement convertFrom()
상속: implements Neos\Flow\Property\TypeConverterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ( mixed $source, string $targetType ) : boolean This implementation always returns TRUE for this method.
getPriority ( ) : integer Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.
getSourceChildPropertiesToBeConverted ( mixed $source ) : array Returns an empty list of sub property names
getSupportedSourceTypes ( ) : array Returns the list of source types the TypeConverter can handle.
getSupportedTargetType ( ) : string Return the target type this TypeConverter converts to.
getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Returns the $originalTargetType unchanged in this implementation.
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array.

메소드 상세

canConvertFrom() 공개 메소드

This implementation always returns TRUE for this method.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed the source data
$targetType string the type to convert to.
리턴 boolean TRUE if this TypeConverter can convert from $source to $targetType, FALSE otherwise.

getPriority() 공개 메소드

Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.
public getPriority ( ) : integer
리턴 integer

getSourceChildPropertiesToBeConverted() 공개 메소드

Returns an empty list of sub property names
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
리턴 array

getSupportedSourceTypes() 공개 메소드

Must be PHP simple types, classes or object is not allowed.
public getSupportedSourceTypes ( ) : array
리턴 array

getSupportedTargetType() 공개 메소드

Can be a simple type or a class name.
public getSupportedTargetType ( ) : string
리턴 string

getTargetTypeForSource() 공개 메소드

Returns the $originalTargetType unchanged in this implementation.
public getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$source mixed the source data
$originalTargetType string the type we originally want to convert to
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getTypeOfChildProperty() 공개 메소드

This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array.
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string
$propertyName string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

프로퍼티 상세

$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