ZenMagick 0.9.6


org.zenmagick.rp.ajax.controller.ZMAjaxCatalogController

Class ZMAjaxCatalogController

ZMObject
|
+--ZMController
|
+--ZMAjaxController
|
+--ZMAjaxCatalogController

public class ZMAjaxCatalogController
extends ZMAjaxController

Ajax controller for JSON catalog data.

Author:
DerManoMann
Version:
$Id: ZMAjaxCatalogController.php 2153 2009-04-14 03:28:18Z dermanomann $

Constructor Summary

ZMAjaxCatalogController()

Create new instance.

Method Summary
void

getProductForIdJSON(int productd)

Get product information for the given product id.

void

getProductsForCategoryIdJSON(int categoryId, boolean active)

Get products for the given category id.

Methods inherited from org.zenmagick.rp.ajax.ZMAjaxController
flattenObject, process, processGet, setJSONHeader, toJSON
Methods inherited from org.zenmagick.rp.ZMController
exportGlobal, findView, getFormBean, getGlobal, getGlobals, getId, getView, handleRequest, isFormSubmit, process, processGet, processPost, setContentType, setId, setView, validate, validateFormBean
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMAjaxCatalogController

public ZMAjaxCatalogController()

Create new instance. /


Method Detail

getProductForIdJSON

public void getProductForIdJSON(int productd)

Get product information for the given product id.

Parameters:
productd - The product id.

getProductsForCategoryIdJSON

public void getProductsForCategoryIdJSON(int categoryId, boolean active)

Get products for the given category id.

Parameters:
categoryId - The categoryId id.
active - Admin only parameter to allow to retrieve inactive products also.

ZenMagick 0.9.6