Class WSFactory

Description

WSFactory class is responsible for creating Webservice objects

  • author: Saad Rashid (msrashid@etilizepak.com)
  • version: 1.0
  • see: SearchTrail
  • see: FilterController
  • see: WSResponse
  • see: WSException This class will create following object: <li>WSRequest</li> <li>WSResponse</li> <li>WSException</li>
  • see: WSRequest

Located in /models/WSFactory.php (line 25)


	
			
Method Summary
static void createWSException ()
static void createWSRequest ( $type,  $method,  $parameters)
static void createWSResponse ( $type,  $response)
Methods
static method createWSException (line 85)

Factory method for creating WSException object.

  • access: public
static void createWSException ()
static method createWSRequest (line 43)

Factory method for creating web service request. It will create WSRequest depending on the type of request passed.

Current implemention contains following types of request created by this WSRequest.

<li>Keyword Search Request</li> <li>DisplayCategory Search Request</li> <li>Product Detail Request</li> <li>Feature Products Request</li> <li>Product ComRequest</li> <li>Ajax Request used for filters and product descriptions</li>

WSRequest create based on the type of request REST/SOAP and the method used to call target webservice.

  • access: public
static void createWSRequest ( $type,  $method,  $parameters)
  • $type
  • $method
  • $parameters
static method createWSResponse (line 71)

Factory method for creating WSResponse. The method created specified type of response depending on the type parameter passed.

  • access: public
static void createWSResponse ( $type,  $response)
  • $type
  • $response

Documentation generated on Wed, 13 Feb 2008 01:57:45 +0500 by phpDocumentor 1.4.0a2