Class

eZ\Publish\Core\REST\Common\FieldTypeProcessor\BinaryProcessor

class BinaryProcessor extends BinaryInputProcessor

Methods

__construct(string $temporaryDirectory, string $hostPrefix)

mixed preProcessValueHash(mixed $incomingValueHash)

Perform manipulations on a received $incomingValueHash.

from BinaryInputProcessor
postProcessValueHash($outgoingValueHash)

{@inheritdoc}

Details

at line 26
public __construct(string $temporaryDirectory, string $hostPrefix)

Parameters

string $temporaryDirectory
string $hostPrefix

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 35
public postProcessValueHash($outgoingValueHash)

{@inheritdoc}

Parameters

$outgoingValueHash