eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor Class Reference
+ Inheritance diagram for eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor:
+ Collaboration diagram for eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor:

Public Member Functions

 __construct ($temporaryDirectory)
 
 preProcessHash ($incomingValueHash)
 Processes uploaded binary file data in $incomingValueHash. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Common\FieldTypeProcessor
 postProcessHash ($outgoingValueHash)
 Perform manipulations on an a generated $outgoingValueHash. More...
 

Protected Attributes

 $temporaryDirectory
 

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor::__construct (   $temporaryDirectory)
Parameters
string$temporaryDirectory

Member Function Documentation

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor::preProcessHash (   $incomingValueHash)

Processes uploaded binary file data in $incomingValueHash.

This method checks the 'data' key in $incomingValueHash, which must contain base64 encoded binary data to be stored as a binary file. It stores the decoded data in a temporary file in $temporaryDirectory and sets the 'path' key in the returned hash accordingly.

Parameters
array$incomingValueHash
Returns
array

Implements eZ\Publish\Core\REST\Common\FieldTypeProcessor.

Member Data Documentation


The documentation for this class was generated from the following file: