Class ProductController

Description

This controller is used to get the content for any product. It uses REST based architecture to talk to the Etilize web services in order to get these content information.

Every product has different type of data available which includes, basic specs, detail specs, similar products, option and accessories, suggested products and other. This controller has defined different actions to get this data.

Following url is used to access this controller. This is forwarded to getProductAction that get the basic specs(displayed in overview tab) suggested products, and category trail.

http://inquiredemo.etilize.com/rest/index.php/product/getProduct?productId=1010042252

  • author: Zaid Ansari
  • version: 1.0

Located in /controllers/ProductController.php (line 26)

Zend_Controller_Action
   |
   --BaseController
      |
      --ProductController
Method Summary
Variables
Methods
getproductAction (line 36)

getproductAction is used to get the information of a single product

This function takes one parameter 'productId' and perform WS request to collect all required information of that product. This fuction than shows the product information on product detail view.

  • access: public
void getproductAction ()
gettechnicalAction (line 159)

gettechnicalAction is used to get the Technical inormation of selected Project

This function is invoked when user first selects the Technica Specification Tab. This generates an AJAX Request that retrieves the data from server and shows it to user.

  • access: public
void gettechnicalAction ()

Inherited Methods

Inherited From BaseController

BaseController::getAllCategories()
BaseController::getAllManufactures()
BaseController::getChildCategories()
BaseController::populateSearchResults()
BaseController::postDispatch()
BaseController::preDispatch()
BaseController::renderDynamicTemplates()
BaseController::serviceRequest()
BaseController::setCompareProductPage()
BaseController::setFooter()
BaseController::setHeader()
BaseController::setHomePage()
BaseController::setSearchResultsPage()
BaseController::setWSRequestFailed()

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