WiseLoop PHP REST Services 3.3.1
RESTful web service API framework for PHP
wlRestOutputHandlerJson Class Reference
Inheritance diagram for wlRestOutputHandlerJson:

Public Member Functions

 render ($data)
 getContentType ()

Detailed Description

WiseLoop JSON RestOutputHandler class definition
This class implements an output handler that will render the data as in JSON format.
This output handler is registered by default when creating a new REST Service.

See also:
wlRestOutputHandler

Member Function Documentation

getContentType ( )

Returns 'application/json' string as the content mime type header that will be sent to the requester.

Returns:
string

Reimplemented from wlRestOutputHandler.

render ( data)

Renders the data in JSON format.

Parameters:
mixed$data
Returns:
mixed the processed data to be sent to the requester
See also:
wlRestService

Reimplemented from wlRestOutputHandler.

 All Data Structures Functions Variables