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

Class: TAjaxStubClient

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

Class Overview

TAjaxClient
   |
   --TAjaxStubClient

AJAX Remote Object client stub render.

Class Details

[line 306]
AJAX Remote Object client stub render.

Renders the javascript for remote AJAX objects.




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


[ Top ]

Variables

Methods


Inherited Methods

Class: TAjaxClient

TAjaxClient::compareEtags()
Determine if the given cache identifiers matches with that from the browser client. If match, send not-modified cache header.
TAjaxClient::getCacheETag()
Get the cache identifier, a MD5 of the handlers and request URI.
TAjaxClient::render()
Render the client-side javascript.
TAjaxClient::sendCacheHeaders()
Sends cache headers with cache identifier.
TAjaxClient::sendJsHeader()
Sends the javascript header, i.e. content-length, and content-type.

Class Variables

$objects =

[line 318]

List of remote objects.



access:  protected

Type:   TAjaxObjectInfo[]


[ Top ]

$stub =

[line 312]

Code generator.



access:  protected

Type:   TAjaxStub


[ Top ]



Class Methods


constructor __construct [line 325]

TAjaxStubClient __construct( TAjaxStub $stub, TAjaxObjectInfo $objects)

Create a new remote AJAX object render



access:  public


Parameters:

TAjaxStub   $stub   code generator
TAjaxObjectInfo   $objects   list of classes to handle.

[ Top ]

method render [line 335]

void render( )

Renders the javascript client. Checks the client-side cache id, render if the cache id differ from the current cache id.



access:  public


Overrides TAjaxClient::render() (Render the client-side javascript.)

[ Top ]

method renderScripts [line 347]

string renderScripts( TAjaxObjectInfo[] $objects)

Gets the javascript contents for render.



return:  javascript remote proxy code.
access:  protected


Parameters:

TAjaxObjectInfo[]   $objects   a list of remote objects acceptable.

[ Top ]


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