PHP Class Neos\Media\TypeConverter\ImageInterfaceArrayPresenter

Inheritance: extends Neos\Flow\Property\TypeConverter\AbstractTypeConverter
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$priority integer
$sourceTypes array
$targetType string

Méthodes publiques

Méthode Description
canConvertFrom ( mixed $source, string $targetType ) : boolean If $source has an identity, we have a persisted Image, and therefore this type converter should withdraw and let the PersistedObjectConverter kick in.
convertFrom ( Neos\Media\Domain\Model\ImageInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Error Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation
getSourceChildPropertiesToBeConverted ( mixed $source ) : array Convert all properties in the source array

Method Details

canConvertFrom() public méthode

If $source has an identity, we have a persisted Image, and therefore this type converter should withdraw and let the PersistedObjectConverter kick in.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed The source for the to-build Image
$targetType string Should always be 'string'
Résultat boolean

convertFrom() public méthode

Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation
public convertFrom ( Neos\Media\Domain\Model\ImageInterface $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Error
$source Neos\Media\Domain\Model\ImageInterface
$targetType string must be 'string'
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Résultat string | Neos\Flow\Validation\Error The converted Image, a Validation Error or NULL

getSourceChildPropertiesToBeConverted() public méthode

Convert all properties in the source array
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
Résultat array

Property Details

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$priority protected_oe property

protected int $priority
Résultat integer

$sourceTypes protected_oe property

protected array $sourceTypes
Résultat array

$targetType protected_oe property

protected string $targetType
Résultat string