AJAX
[ class tree: AJAX ] [ index: AJAX ] [ all elements ]

Class: HTML_AJAX_Server

Source Location: /HTML_AJAX-0.1.3/AJAX/Server.php

Class Overview


Class for creating an external AJAX server


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 Joshua Eichorn

Variables

Methods


Child classes:

TestServer
Class for creating an external AJAX server

Inherited Variables

Inherited Methods


Class Details

[line 45]
Class for creating an external AJAX server

Can be used in 2 different modes, registerClass mode where you create an instance of the server and add the classes that will be registered and then run handle request

Or you can extend it and add init{className} methods for each class you want to export

Client js generation is exposed through 2 _GET params client and stub Setting the _GET param client to `all` will give you all the js classes needed Setting the _GET param stub to `all` will give you stubs of all registered classes, you can also set it too just 1 class



[ Top ]


Class Variables

$ajax =

[line 58]

HTML_AJAX instance

Type:   HTML_AJAX


[ Top ]

$initMethods =  false

[line 64]

Set to true if your extending the server to add init{className methods}

Type:   boolean


[ Top ]

$options =  true

[line 52]

Client options array if set to true the code looks at _GET

Type:   bool|array


[ Top ]



Method Detail

HTML_AJAX_Server (Constructor)   [line 71]

HTML_AJAX_Server HTML_AJAX_Server( )

Constructor creates the HTML_AJAX instance

[ Top ]

clientJsLocation   [line 181]

string clientJsLocation( )

Get the location of the client js
  • Todo: figure out where this will be on an install

[ Top ]

generateClient   [line 112]

void generateClient( )

Generate client js
  • Todo: Add Http_Cache type functionality so the client will cache the js

[ Top ]

handleRequest   [line 82]

string handleRequest( )

Handle a client request, either generating a client or having HTML_AJAX handle the request
  • Return: generated client or ajax response

[ Top ]

registerClass   [line 102]

void registerClass( &$instance, [ $exportedName = false], [ $exportedMethods = false])

Register method passthrough to HTML_AJAX
  • See: HTML_AJAX::registerClass for docs

Parameters:

   &$instance   — 
   $exportedName   — 
   $exportedMethods   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:16:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.