PHP Класс Neos\Flow\Property\TypeConverter\BooleanConverter

For boolean this is a no-op, integer and float are simply typecast to boolean. Strings are converted to TRUE unless they are empry or match one of 'off', 'n', 'no', 'false' (case-insensitive).
Наследование: extends AbstractTypeConverter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$priority integer
$sourceTypes array
$targetType string

Открытые методы

Метод Описание
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : boolean Actually convert from $source to $targetType

Описание методов

convertFrom() публичный Метод

Actually convert from $source to $targetType
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : boolean
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат boolean

Описание свойств

$priority защищенное свойство

protected int $priority
Результат integer

$sourceTypes защищенное свойство

protected array $sourceTypes
Результат array

$targetType защищенное свойство

protected string $targetType
Результат string