Class

eZ\Publish\Core\REST\Common\FieldTypeProcessor\MediaProcessor

class MediaProcessor extends BinaryInputProcessor

Methods

__construct(string $temporaryDirectory)

from BinaryInputProcessor
mixed preProcessValueHash(mixed $incomingValueHash)

Perform manipulations on a received $incomingValueHash.

from BinaryInputProcessor
preProcessFieldSettingsHash($incomingSettingsHash)

{@inheritdoc}

postProcessFieldSettingsHash($outgoingSettingsHash)

{@inheritdoc}

Details

in BinaryInputProcessor at line 23
public __construct(string $temporaryDirectory)

Parameters

string $temporaryDirectory

in BinaryInputProcessor at line 31
public mixed preProcessValueHash(mixed $incomingValueHash)

Perform manipulations on a received $incomingValueHash.

This method is called by the REST input parsers to allow a field type to pre process the given $incomingValueHash before it is handled by {@link eZ\Publish\SPI\FieldType\FieldType::fromHash()}. The $incomingValueHash can be expected to conform to the rules that need to apply to hashes accepted by fromHash(). The return value of this method replaces the $incomingValueHash.

Parameters

mixed $incomingValueHash

Return Value

mixed Pre processed hash

at line 18
public preProcessFieldSettingsHash($incomingSettingsHash)

{@inheritdoc}

Parameters

$incomingSettingsHash

at line 51
public postProcessFieldSettingsHash($outgoingSettingsHash)

{@inheritdoc}

Parameters

$outgoingSettingsHash