eZPublish  4.5
eZWishList Class Reference

eZWishList handles shopping wish lists More...

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

Public Member Functions

 discountPercent ()
 
 eZWishList ($row=array())
 
 itemCount ($alternativeProductionID=false)
 
 items ($asObject=true, $alternativeProductionID=false, $offset=false, $limit=false)
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

Static Public Member Functions

static cleanup ()
 
static currentWishList ($asObject=true)
 
static definition ()
 
static removeByUserID ($userID)
 
static removeItem ($itemID)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

eZWishList handles shopping wish lists

See Also
eZProductCollection

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.
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.

Referenced by eZShopFunctionCollection\fetchCurrentWishList().

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

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

eZWishList::discountPercent ( )
eZWishList::eZWishList (   $row = array())

Referenced by currentWishList().

eZWishList::itemCount (   $alternativeProductionID = false)
eZWishList::items (   $asObject = true,
  $alternativeProductionID = false,
  $offset = false,
  $limit = false 
)
static eZWishList::removeByUserID (   $userID)
static

Remove wish list entries belonging to user $userID

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.

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