PHP 클래스 Neos\Media\TypeConverter\ArrayConverter

상속: extends Neos\Flow\Property\TypeConverter\AbstractTypeConverter
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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