eZ Publish  [4.2]
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 40 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 226 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 191 of file ezwishlist.php.

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

Reimplemented from eZPersistentObject.

Definition at line 50 of file ezwishlist.php.

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

eZWishList::discountPercent ( )

Definition at line 78 of file ezwishlist.php.

eZWishList::eZWishList ( row = array())

Definition at line 42 of file ezwishlist.php.

Referenced by currentWishList().

eZWishList::itemCount ( alternativeProductionID = false)

Definition at line 101 of file ezwishlist.php.

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

Definition at line 115 of file ezwishlist.php.

static eZWishList::removeByUserID ( userID) [static]

Remove wish list entries belonging to user $userID

Definition at line 247 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 179 of file ezwishlist.php.


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