uiShoppingCart Class Reference

#include <shoppingCart.hpp>

Inheritance diagram for uiShoppingCart:

Inheritance graph
[legend]
Collaboration diagram for uiShoppingCart:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 uiShoppingCart (cgiScript &in)
virtual ~uiShoppingCart ()
void stats (void)
bool UpdateProduct (string productId, string productCount="1", string productOptions="", string productData="", int node=0)
bool AlwaysAddProduct (string productId, string productCount="1", string productOptions="", string productData="", int stock=1)
bool AddProduct (string productId, string productCount="1", string productOptions="", string productData="", int stock=1)
bool RemoveProduct (string productId)
bool CheckOut (void)
bool CancelOrder (void)
 uiShoppingCart (cgiScript &in)
virtual ~uiShoppingCart ()
void stats (void)
bool UpdateProduct (string productId, string productCount="1", string productOptions="", string productData="", int node=0)
bool AlwaysAddProduct (string productId, string productCount="1", string productOptions="", string productData="", int stock=1)
bool AddProduct (string productId, string productCount="1", string productOptions="", string productData="", int stock=1)
bool RemoveProduct (string productId)
bool CheckOut (void)
bool CancelOrder (void)

Public Attributes

cgiScriptscript
cgiCookie cookie
int items
cgiScriptscript

Private Member Functions

bool addNewCart (void)
bool addNewCart (void)


Detailed Description

Definition at line 78 of file shoppingCart.hpp.


Constructor & Destructor Documentation

uiShoppingCart::uiShoppingCart ( cgiScript in  )  [inline]

virtual uiShoppingCart::~uiShoppingCart (  )  [inline, virtual]

Definition at line 136 of file shoppingCart.hpp.

uiShoppingCart::uiShoppingCart ( cgiScript in  )  [inline]

virtual uiShoppingCart::~uiShoppingCart (  )  [inline, virtual]

Definition at line 136 of file shoppingCart.hpp.


Member Function Documentation

bool uiShoppingCart::addNewCart ( void   )  [inline, private]

void uiShoppingCart::stats ( void   )  [inline]

bool uiShoppingCart::UpdateProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  node = 0 
) [inline]

bool uiShoppingCart::AlwaysAddProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  stock = 1 
) [inline]

bool uiShoppingCart::AddProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  stock = 1 
) [inline]

AddProduct() this version of add product, will look for an existing product id and increment the stock count. It will also overwrite options and data, if there are any passed. 0 length options or data will not null existing data. You can effectively null by passing a space character. The far end should interpret a space as nothing to be concerned about. If no such product by the given productId exists, this method will add it. returns true if update to cart succeeded

Definition at line 308 of file shoppingCart.hpp.

References AlwaysAddProduct(), ocString::append(), ShoppingCart::chMap, cgiEnvironment::ClientArguments(), cgiInput::count(), read_write_base::db_action(), xmlParser::emit(), xmlParser::findFirstNodeByAttribute(), ShoppingCart::Id, ShoppingCart::Last_Access, xmlParser::nodeList(), time_date::now(), ocGenericParser::parse(), script, and ShoppingCart::XML.

Referenced by main().

bool uiShoppingCart::RemoveProduct ( string  productId  )  [inline]

bool uiShoppingCart::CheckOut ( void   )  [inline]

bool uiShoppingCart::CancelOrder ( void   )  [inline]

bool uiShoppingCart::addNewCart ( void   )  [inline, private]

void uiShoppingCart::stats ( void   )  [inline]

bool uiShoppingCart::UpdateProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  node = 0 
) [inline]

bool uiShoppingCart::AlwaysAddProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  stock = 1 
) [inline]

bool uiShoppingCart::AddProduct ( string  productId,
string  productCount = "1",
string  productOptions = "",
string  productData = "",
int  stock = 1 
) [inline]

AddProduct() this version of add product, will look for an existing product id and increment the stock count. It will also overwrite options and data, if there are any passed. 0 length options or data will not null existing data. You can effectively null by passing a space character. The far end should interpret a space as nothing to be concerned about. If no such product by the given productId exists, this method will add it. returns true if update to cart succeeded

Definition at line 308 of file shoppingCart.hpp.

References AlwaysAddProduct(), ocString::append(), ShoppingCart::chMap, cgiEnvironment::ClientArguments(), cgiInput::count(), read_write_base::db_action(), xmlParser::emit(), xmlParser::findFirstNodeByAttribute(), ShoppingCart::Id, ShoppingCart::Last_Access, xmlParser::nodeList(), time_date::now(), ocGenericParser::parse(), script, and ShoppingCart::XML.

bool uiShoppingCart::RemoveProduct ( string  productId  )  [inline]

bool uiShoppingCart::CheckOut ( void   )  [inline]

bool uiShoppingCart::CancelOrder ( void   )  [inline]


Member Data Documentation

Definition at line 99 of file shoppingCart.hpp.

Referenced by AddProduct(), AlwaysAddProduct(), RemoveProduct(), and uiShoppingCart().

Definition at line 100 of file shoppingCart.hpp.

Referenced by addNewCart(), and uiShoppingCart().

Definition at line 101 of file shoppingCart.hpp.

Referenced by main(), and stats().

Definition at line 99 of file shoppingCart.hpp.


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:58 2009 for w3systemsDevelopment by  doxygen 1.5.5