eZPublish  3.8
eZProductCollectionItem Class Reference

eZProductCollectionItem handles one product item More...

+ Inheritance diagram for eZProductCollectionItem:
+ Collaboration diagram for eZProductCollectionItem:

Public Member Functions

 calculatePriceWithOptions ($currency=false)
 
 clone ()
 
contentObject ()
 
copy ($collectionID)
 
 create ($productCollectionID)
 
 definition ()
 
 discountPercent ()
 
 eZProductCollectionItem ($row)
 
 fetch ($id, $asObject=true)
 
 fetchList ($conditions=null, $asObjects=true, $offset=false, $limit=false)
 
optionList ()
 
 remove ()
 
 verify ($currency=false)
 
- 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)
 

Public Attributes

 $ContentObject = null
 Stores the content object. More...
 

Detailed Description

eZProductCollectionItem handles one product item

Member Function Documentation

eZProductCollectionItem::calculatePriceWithOptions (   $currency = false)

Goes trough all options and finds the attribute they points to and calls productOptionInformation() to fetch the option data.

Returns
The total price of all options.

Referenced by verify().

eZProductCollectionItem::cleanupList (   $productCollectionIDList)
static

Removes all product collection items which related to the product collections specified in the array $productCollectionIDList.

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 eZProductCollection\cleanupList(), and eZDBGarbageCollector\collectProductCollections().

eZProductCollectionItem::clone ( )

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

Referenced by copy().

& eZProductCollectionItem::contentObject ( )
Returns
Returns the content object defining the product.

Referenced by calculatePriceWithOptions().

& eZProductCollectionItem::copy (   $collectionID)

Copies the collection object item and the option, the new copy will point to the collection $collectionID.

Returns
the new collection item object.
Note
The new collection item 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.
eZProductCollectionItem::create (   $productCollectionID)

Creates a new empty collection item which belongs to collection $collectionID and returns it.

Referenced by eZShopOperationCollection\addToBasket().

eZProductCollectionItem::discountPercent ( )
Returns
the discount percent for the current item
eZProductCollectionItem::eZProductCollectionItem (   $row)

Referenced by create().

eZProductCollectionItem::fetchList (   $conditions = null,
  $asObjects = true,
  $offset = false,
  $limit = false 
)
& eZProductCollectionItem::optionList ( )

Referenced by copy().

eZProductCollectionItem::remove ( )
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.
eZProductCollectionItem::verify (   $currency = false)

Member Data Documentation

eZProductCollectionItem::$ContentObject = null

Stores the content object.

Referenced by contentObject().


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