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

* If the source is an array, it is returned unchanged. * If the source is a string, is is converted depending on CONFIGURATION_STRING_FORMAT, which can be STRING_FORMAT_CSV or STRING_FORMAT_JSON. For CSV the delimiter can be set via CONFIGURATION_STRING_DELIMITER. * If the source is a PersistentResource object, it is converted to an array. The actual resource content is either embedded as base64-encoded data or saved to a file, depending on CONFIGURATION_RESOURCE_EXPORT_TYPE. For RESOURCE_EXPORT_TYPE_FILE the setting CONFIGURATION_RESOURCE_SAVE_PATH must be set as well.
상속: extends AbstractTypeConverter
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array Convert from $source to $targetType, a noop if the source is an array.

보호된 메소드들

메소드 설명
getResourceExportType ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
getStringDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
getStringFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string

메소드 상세

convertFrom() 공개 메소드

If it is a string it will be converted according to the configured string format.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 array

getResourceExportType() 보호된 메소드

protected getResourceExportType ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getStringDelimiter() 보호된 메소드

protected getStringDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 string

getStringFormat() 보호된 메소드

protected getStringFormat ( 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