eZPublish  3.8
eZProductCollection Class Reference

eZProductCollection is a container class which handles groups of products More...

+ Inheritance diagram for eZProductCollection:
+ Collaboration diagram for eZProductCollection:

Public Member Functions

 clone ()
 
copy ()
 
 create ()
 
 definition ()
 
 eZProductCollection ($row)
 
 fetch ($productCollectionID, $asObject=true)
 
itemList ($asObject=true)
 
verify ($id)
 
- Public Member Functions inherited from eZPersistentObject
attribute ($attr, $noFunction=false)
 
 attributes ()
 
 conditionText (&$conditions)
 
conditionTextByRow (&$conditions, &$row)
 
 definition ()
 
escapeArray (&$array)
 
 eZPersistentObject ($row)
 
 fetchObject (&$def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
 fetchObjectList (&$def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null)
 
 fill (&$row)
 
 getShortAttributeName (&$db, &$def, $attrName)
 
 handleRows (&$rows, $class_name, $asObject)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 newObjectOrder (&$def, $orderField, $conditions)
 
 remove ($conditions=null, $extraConditions=null)
 
 removeObject (&$def, $conditions=null, $extraConditions=null)
 
 reorderObject (&$def, $orderField, $conditions, $down=true)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 swapRow ($table, &$keys, &$order_id, &$rows, $id1, $id2)
 
 sync ($fieldFilters=null)
 
 updateObjectList ($parameters)
 

Static Public Member Functions

 cleanupList ($productCollectionIDList)
 
 count ()
 

Detailed Description

eZProductCollection is a container class which handles groups of products

Member Function Documentation

eZProductCollection::cleanupList (   $productCollectionIDList)
static

Removes all product collections which are specified in the array $productCollectionIDList. Will also remove the product collection items.

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 eZWishList\cleanup(), eZBasket\cleanup(), eZOrder\cleanup(), eZBasket\cleanupCurrentBasket(), eZBasket\cleanupExpired(), and eZDBGarbageCollector\collectBaskets().

eZProductCollection::clone ( )

Clones the collection object and returns it. The ID of the clone is erased.

Referenced by copy().

& eZProductCollection::copy ( )

Copies the collection object, the collection items and options.

Returns
the new collection object.
Note
The new collection will already be present in the database.
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.
eZProductCollection::count ( )
static
Returns
a count of the number of product collections that exists.
eZProductCollection::create ( )

Creates a new empty collection and returns it.

Referenced by eZBasket\currentBasket(), eZWishList\currentWishList(), and eZShopFunctionCollection\fetchBasket().

eZProductCollection::definition ( )

Referenced by fetch().

eZProductCollection::eZProductCollection (   $row)

Referenced by create().

eZProductCollection::fetch (   $productCollectionID,
  $asObject = true 
)
Returns
the product collection with ID $productCollectionID.

Referenced by eZOrder\currencyCode(), eZOrder\productCollection(), eZBasket\productCollection(), eZOrder\removeCollection(), and verify().

& eZProductCollection::itemList (   $asObject = true)
Returns
all production collection items as an array.

Referenced by copy().

& eZProductCollection::verify (   $id)

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