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

Public Member Functions

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

Protected Member Functions

 generateUrl ($path)
 Generates a URL for $path. More...
 

Protected Attributes

 $urlTemplate
 
- Protected Attributes inherited from eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryInputProcessor
 $temporaryDirectory
 

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryProcessor::__construct (   $temporaryDirectory,
  $urlTemplate 
)
Parameters
string$temporaryDirectory
string$urlTemplate

Member Function Documentation

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryProcessor::generateUrl (   $path)
protected

Generates a URL for $path.

Parameters
string$path
Returns
string

Referenced by eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryProcessor\postProcessHash().

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryProcessor::postProcessHash (   $outgoingValueHash)

Perform manipulations on an a generated $outgoingValueHash.

This method is called by the REST server to allow a field type to post process the given $outgoingValueHash, which was previously generated using ::toHash(), before it is sent to the client. The return value of this method replaces $outgoingValueHash and must obey to the same rules as the original $outgoingValueHash.

Parameters
mixed$outgoingValueHash
Returns
mixed Post processed hash

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

Member Data Documentation

eZ\Publish\Core\REST\Server\FieldTypeProcessor\BinaryProcessor::$urlTemplate
protected

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