DefaultFormatter Class Reference

Detailed Description

Default Formatter implementation.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 23 of file DefaultFormatter.php.

+ Inheritance diagram for DefaultFormatter:

Public Member Functions

 __construct (array $formats)
 
 getFormat ($name)
 
 getFormatFromMimeType ($mimeType)
 
 deserialize (Request $request)
 
 serialize (Response $response)
 

Constructor & Destructor Documentation

__construct ( array  $formats)

Constructor.

Parameters
$formatsArray of Format instances to use

Definition at line 31 of file DefaultFormatter.php.

Member Function Documentation

getFormat (   $name)
See also
Formatter::getFormat()

Implements Formatter.

Definition at line 38 of file DefaultFormatter.php.

getFormatFromMimeType (   $mimeType)
See also
Formatter::getFormatFromMimeType()

Implements Formatter.

Definition at line 48 of file DefaultFormatter.php.

deserialize ( Request  $request)
See also
Formatter::deserialize()

Implements Formatter.

Definition at line 66 of file DefaultFormatter.php.

serialize ( Response  $response)
See also
Formatter::serialize()

Implements Formatter.

Definition at line 80 of file DefaultFormatter.php.