eZ Publish  [trunk]
eZWishList Class Reference

eZWishList handles shopping wish lists More...

+ Inheritance diagram for eZWishList:
+ Collaboration diagram for eZWishList:

List of all members.

Public Member Functions

 discountPercent ()
 eZWishList ($row=array())
 itemCount ($alternativeProductionID=false)
 items ($asObject=true, $alternativeProductionID=false, $offset=false, $limit=false)

Static Public Member Functions

static cleanup ()
static currentWishList ($asObject=true)
static definition ()
static removeByUserID ($userID)
static removeItem ($itemID)

Detailed Description

eZWishList handles shopping wish lists

See also:
eZProductCollection

Definition at line 19 of file ezwishlist.php.


Member Function Documentation

static eZWishList::cleanup ( ) [static]

Removes all wishlists from the database.

Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 208 of file ezwishlist.php.

static eZWishList::currentWishList ( asObject = true) [static]

Will return the wish list for the current user. If a wish list does not exist one will be created.

Returns:
current eZWishList object
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 173 of file ezwishlist.php.

Referenced by eZShopFunctionCollection\fetchCurrentWishList().

static eZWishList::definition ( ) [static]
Returns:
the persistent object definition for the eZCard class.

Reimplemented from eZPersistentObject.

Definition at line 29 of file ezwishlist.php.

Referenced by currentWishList(), eZContentObject\purge(), and removeByUserID().

Definition at line 57 of file ezwishlist.php.

eZWishList::eZWishList ( row = array())

Definition at line 21 of file ezwishlist.php.

Referenced by currentWishList().

eZWishList::itemCount ( alternativeProductionID = false)

Definition at line 80 of file ezwishlist.php.

eZWishList::items ( asObject = true,
alternativeProductionID = false,
offset = false,
limit = false 
)

Definition at line 96 of file ezwishlist.php.

static eZWishList::removeByUserID ( userID) [static]

Remove wish list entries belonging to user $userID

Definition at line 229 of file ezwishlist.php.

Referenced by eZUser\removeUser().

static eZWishList::removeItem ( itemID) [static]
Note:
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Definition at line 161 of file ezwishlist.php.


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