Class AjThread

Description

The Ajax Thread Calling Class

it uses Ajax in Client Side to call threads it has the benefit of no dependence on PHP Sockets Support on server and that threads can print to browser directly Problems are when user Disables JS or Limited Number of Connections issue (as RFC sets them to 2 in Browser side)

Located in /Thread/AjThreader.php (line 26)

CallerBasic
   |
   --AjThread
Method Summary
 AjThread __construct (string $url, string $params, string $MothProcess)
 void Go ()
 void SetParams (string $Npr)
Variables

Inherited Variables

Inherited from CallerBasic

CallerBasic::$pos
Methods
Constructor __construct (line 35)

Ajax Class Constructor

AjThread __construct (string $url, string $params, string $MothProcess)
  • string $url: PATH to the thread
  • string $params: Thread Parameters
  • string $MothProcess: The Process that Contains Threads

Redefinition of:
CallerBasic::__construct()
CallerBasic Constructor , it must be explicily called from clasese extending it (PHP OOP issue)
Go (line 72)

Ajax-Thread Calling Specific Thread Launching function

sending JS Code to browser to start Thread (Fire Ajax Request) and use flush() for instant execution (Empty buffer)

Note : Parameters Format are Like Passed through GET in urls e.g. "asd=1&qwe=2&rty=3" will be perceived by called thread $_POST['asd']=1 , $_POST['qwe']=2 , $_POST['rty']=3

void Go ()

Redefinition of:
CallerBasic::Go()
This is a void function with no arguments
SetParams (line 55)

Ajax-Thread Calling Specific Parameters Setting

Direct Setting of Thread Params through sending JS Code to browser to change Params

Note : Parameters Format are Like Passed through GET in urls e.g. "asd=1&qwe=2&rty=3" will be perceived by called thread $_POST['asd']=1 , $_POST['qwe']=2 , $_POST['rty']=3

void SetParams (string $Npr)
  • string $Npr

Redefinition of:
CallerBasic::SetParams()
A void function with one argument

Inherited Methods

Inherited From CallerBasic

 CallerBasic::__construct()
 CallerBasic::Get()
 CallerBasic::GetID()
 CallerBasic::GetState()
 CallerBasic::Go()
 CallerBasic::Join()
 CallerBasic::Set()
 CallerBasic::SetParams()

Documentation generated on Fri, 01 Aug 2008 05:54:08 +0300 by phpDocumentor 1.4.1