System.Web.Services.AJAX
[ class tree: System.Web.Services.AJAX ] [ index: System.Web.Services.AJAX ] [ all elements ]

Class: TAjaxResponse

Source Location: /Web/Services/AJAX/TRemoteObjectServer.php

Class Overview


AJAX Response, sends back data and output.

Class Details

[line 597]
AJAX Response, sends back data and output.

Returns JSON encoded (must be in UTF-8) data in X-JSON header, and renders the raw output.




version:  $Revision: 1.1 $ $Date: 2005/11/06 23:02:35 $
author:  Wei Zhuo<weizhuo[at]gmail[dot]com>


[ Top ]

Variables

Methods



Class Variables

$data =

[line 603]

Response data.



access:  protected

Type:   mixed


[ Top ]

$output =

[line 609]

Response output.



access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 616]

TAjaxResponse __construct( [mixed $data = null], [string $output = ''])

Create a new AJAX response.



access:  public


Parameters:

mixed   $data   response data.
string   $output   response output.

[ Top ]

method getData [line 635]

mixed getData( )

Gets the response data.



return:  response data.
access:  public


[ Top ]

method getOutput [line 653]

string getOutput( )

Returns the response output.



return:  output
access:  public


[ Top ]

method render [line 662]

void render( )

Renders the response, send JSON encoded data, if any, in the header X-JSON and renders the output.



access:  public


[ Top ]

method setData [line 626]

void setData( mixed $data)

Sets the response data.



access:  public


Parameters:

mixed   $data   data.

[ Top ]

method setOutput [line 644]

void setOutput( string $output)

Sets the response output.



access:  public


Parameters:

string   $output   output

[ Top ]


© 2004-2005 PRADO Software Group. All Rights Reserved.