• Welcome to KonaKart Community Forum. Please login or sign up.
 

CategoryIf#getProdcuts()

Started by michaelwechner, June 30, 2010, 08:02:07 am

Previous topic - Next topic

michaelwechner

I am using now

ProductsIf prods = kkEngine.getProductsPerCategory(null, null, categoryID, true, languageID);

which works very fine, whereas I set "true" in order to make sure to also the products of the sub-categories.

Still I think it would be convenient to have something like

ProductsIf prods = myCategory.getProducts(true);

;-)

Btw, another question I have is re scalability/peformance. It's of returning an array would't it make more sense to return an Iterator (which allows to iterate over the products)?

Thanks

Michael