Re: New Class Proposal

From: Date: Wed, 04 Dec 2002 21:18:17 +0000
Subject: Re: New Class Proposal
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11359@lists.php.net to get a copy of this message
On Wednesday, Dec 4, 2002, at 04:12 America/Chicago, Yavor Shahpasov wrote:
I have to write a simple e-commerce application. I was thinking about having the shopping cart part PEARized. My general idea is to follow the container paradigm used in many pear classes, a main class, a container class, and two containers at this stage session and DB. Would this be acceptable for inclusion in PEAR. I will be follwoing the nessesary code etc requirements. the container api am thinking about is Cart::add() Cart::remove() Cart::get() Cart::getList() Shout if am missing somthing obvious :)
How about: Cart::remove_all() Would be really useful if you could query the cart for the total value of its current contents, too. Jason Perkins

« previous php.pear.dev (#11359) next »