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

Class: TAjaxUri

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

Class Overview


AJAX URI class.

Class Details

[line 880]
AJAX URI class.

Manipulate the AJAX request URIs.




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


[ Top ]

Variables

Methods


Child classes:

TAjaxPathUri
AJAX URI using paths, e.g. mod_rewrite style.

Class Variables

$NS =

[line 892]

Server URL namespace.



access:  protected

Type:   string


[ Top ]

$uri =

[line 886]

Server URL



access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 894]

TAjaxUri __construct( mixed $uri, mixed $NS)



access:  public


[ Top ]

method getClientUri [line 950]

string getClientUri( )

Get the client-side javascript source URL



return:  client-side javascript URL
access:  public


Overridden in child classes as:

TAjaxPathUri::getClientUri()
Gets the client javascript source url.

[ Top ]

method getDefaultUri [line 995]

string getDefaultUri( )

Gets the default URI based on the current script name.



return:  server URI
static:  
access:  public


[ Top ]

method getNS [line 922]

string getNS( )

Gets the service NS.



return:  Namespace
access:  public


[ Top ]

method getRequestUri [line 979]

string getRequestUri( )

Returns the portion of the URL to the right of a pattern e.g. http://localhost/index.php?__AJAX/foo/bar returns 'foo/bar'.



return:  request URI
access:  public


[ Top ]

method getServerUri [line 940]

string getServerUri( )

Get the server service URL



return:  serive URL
access:  public


Overridden in child classes as:

TAjaxPathUri::getServerUri()
Gets the server URL

[ Top ]

method getUrl [line 913]

string getUrl( )

Gets the URL



return:  url
access:  public


[ Top ]

method isClientRequest [line 959]

boolean isClientRequest( )

Returns true if the requesting a the client-side javascript code.



return:  true if $_GET contains a '__client' parameter.
access:  public


[ Top ]

method isServerRequest [line 968]

boolean isServerRequest( )

Returns true if the request is to invoke a remote object method.



return:  true if invoking remote method request.
access:  public


[ Top ]

method setNS [line 931]

void setNS( string $ns)

Sets the service Namespace



access:  public


Parameters:

string   $ns   ns

[ Top ]

method setURL [line 904]

void setURL( string $url)

Sets the URI url.



access:  public


Parameters:

string   $url   url

[ Top ]


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