[ Index ]

PHP Cross Reference of JPSpan 0.4 (beta)

title

Body

[close]

/JPSpan/ -> Server.php (summary)

(no description)

File Size: 222 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JPSpan_Server:: (10 methods):
  JPSpan_Server()
  setServerUrl()
  getServerUrl()
  getDescription()
  addHandler()
  getGenerator()
  serve()
  getUriPath()
  loadErrorReader()
  displayClient()


Class: JPSpan_Server  - X-Ref

Base Server class.

JPSpan_Server()   X-Ref
Sets up the default server url

access: public

setServerUrl($serverUrl)   X-Ref
Set the URL where the server is published

access: public
param: string server url (where the server is public)
return: void

getServerUrl()   X-Ref
Return the server url

access: public
return: string server url (where the server is public)

getDescription($name)   X-Ref
No description

addHandler(& $Handle, $Description = NULL)   X-Ref
Registers a user handler class with the server

access: public
param: mixed handle to user class
see: http://wact.sourceforge.net/index.php/Handle
return: void

getGenerator()   X-Ref
Returns object for generating the client

access: public
return: object

serve()   X-Ref
Start serving (override in subclasses)

access: public
return: boolean FALSE if serve failed

getUriPath()   X-Ref
Returns the portion of the URL to the right of the executed
PHP script e.g. http://localhost/index.php/foo/bar/ returns
'foo/bar'. Returns the string up to the end or to the first ?
character

access: public
return: string

loadErrorReader($lang='en',$app=array()   X-Ref
Load the error reader

access: public
param: string (optional) 2 letter localization code e.g. 'en'
param: array (optional) list of Application_Errors to merge in
param: array (optional) list of Server_Errors to merge in
param: array (optional) list of Client_Errors to merge in
return: void

displayClient()   X-Ref
Display the Javascript client and exit

access: public
return: void



Generated: Fri Nov 26 11:42:46 2004 Cross-referenced by PHPXref 0.6