PHP Class Neos\Media\TypeConverter\ProcessingInstructionsConverter

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

Protected Properties

Свойство Type Description
$priority integer
$sourceTypes array
$targetType string

Méthodes publiques

Méthode Description
convertFrom ( array $source, string $targetType = 'array', array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.

Méthodes protégées

Méthode Description
transferOptionFromCommandToAdjustment ( array $commandOptions, array &$adjustmentOptions, string $commandOptionPath, string $adjustmentOptionName ) : void

Method Details

convertFrom() public méthode

The return value can be one of three types: - an arbitrary object, or a simple type (which has been created while mapping). This is the normal case. - NULL, indicating that this object should *not* be mapped (i.e. a "File Upload" Converter could return NULL if no file has been uploaded, and a silent failure should occur. - An instance of \Neos\Error\Messages\Error -- This will be a user-visible error message later on. Furthermore, it should throw an Exception if an unexpected failure (like a security error) occurred or a configuration issue happened.
public convertFrom ( array $source, string $targetType = 'array', array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source array
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Résultat array the target type, or an error object if a user-error occurred

transferOptionFromCommandToAdjustment() protected méthode

protected transferOptionFromCommandToAdjustment ( array $commandOptions, array &$adjustmentOptions, string $commandOptionPath, string $adjustmentOptionName ) : void
$commandOptions array
$adjustmentOptions array
$commandOptionPath string
$adjustmentOptionName string
Résultat void

Property Details

$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