wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
Formatter Class Reference

Public Member Functions

 deserialize (&$request)
 
 serialize (&$response)
 

Detailed Description

Formatter is is the single entry point for request/response formatting. It chooses the configured formatter based on the format property of the message by getting the value XXXFormat from the configuration section 'implementation'.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.Formatter.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 30 of file class.Formatter.php.

Member Function Documentation

Formatter::deserialize ( $request)

Deserialize Request data into objects.

Note
UTF-8 encoded request data is decoded automatically
Parameters
requestA reference to the Request instance

Definition at line 37 of file class.Formatter.php.

References ObjectFactory\getInstance(), MSG_FORMAT_HTML, and WCMFException\throwEx().

Referenced by HTTPClient\doRemoteCall(), RPCClient\doRemoteCall(), and ActionMapper\processAction().

+ Here is the call graph for this function:

Formatter::serialize ( $response)

Serialize Response according to the output format.

Parameters
responseA reference to the Response instance

Definition at line 57 of file class.Formatter.php.

References ObjectFactory\getInstance(), and WCMFException\throwEx().

Referenced by Controller\execute().

+ Here is the call graph for this function:


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