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.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
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 |
|
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 |
|
Описание свойств
$priority защищенное свойство
protected int $priority |
Результат |
integer |
|
$sourceTypes защищенное свойство
protected array $sourceTypes |
Результат |
array |
|
$targetType защищенное свойство
protected string $targetType |
Результат |
string |
|