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

* If the source is a DateTime instance, it will be formatted as string. The format can be set via CONFIGURATION_DATE_FORMAT. * If the source is an array, it will be converted to a CSV string or JSON, depending on CONFIGURATION_ARRAY_FORMAT. For array to CSV string, the delimiter can be set via CONFIGURATION_CSV_DELIMITER.
상속: extends AbstractTypeConverter
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$priority integer
$sourceTypes array
$targetType string

공개 메소드들

메소드 설명
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.

보호된 메소드들

메소드 설명
getArrayFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Determines the format to use for the conversion from array to string.
getCsvDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Determines the delimiter to use for the conversion from array to CSV format.
getDateFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Determines the date format to use for the conversion.

메소드 상세

convertFrom() 공개 메소드

Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getArrayFormat() 보호된 메소드

If no format is specified in the mapping configuration DEFAULT_ARRAY_FORMAT is used.
protected getArrayFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getCsvDelimiter() 보호된 메소드

If no delimiter is specified in the mapping configuration DEFAULT_CSV_DELIMITER is used.
protected getCsvDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getDateFormat() 보호된 메소드

If no format is specified in the mapping configuration DEFAULT_DATE_FORMAT is used.
protected getDateFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

프로퍼티 상세

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

protected int $priority
리턴 integer

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

protected array $sourceTypes
리턴 array

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

protected string $targetType
리턴 string