PHP Класс Neos\Media\TypeConverter\ArrayConverter

Наследование: extends Neos\Flow\Property\TypeConverter\AbstractTypeConverter
Показать файл Открыть проект

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

Свойство Тип Описание
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$priority integer
$sourceTypes array
$targetType string

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

Метод Описание
canConvertFrom ( mixed $source, string $targetType ) : boolean
convertFrom ( Neos\Media\Domain\Model\AssetInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array Convert an object from $source to an array
getSourceChildPropertiesToBeConverted ( mixed $source ) : array Return a list of sub-properties inside the source object.
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string Return the type of a given sub-property inside the $targetType, in this case always "array"

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

canConvertFrom() публичный метод

public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed
$targetType string
Результат boolean

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

Convert an object from $source to an array
public convertFrom ( Neos\Media\Domain\Model\AssetInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source Neos\Media\Domain\Model\AssetInterface
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат array The converted asset or NULL

getSourceChildPropertiesToBeConverted() публичный метод

The "key" is the sub-property name, and the "value" is the value of the sub-property.
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
Результат array

getTypeOfChildProperty() публичный метод

Return the type of a given sub-property inside the $targetType, in this case always "array"
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string is ignored
$propertyName string is ignored
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface is ignored
Результат string always "array"

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

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

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

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

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

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

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

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