eZPublish  4.5
eZProductCollectionItem Class Reference

eZProductCollectionItem handles one product item More...

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

Public Member Functions

 __clone ()
 
 calculatePriceWithOptions ($currency=false)
 
 contentObject ()
 
 copy ($collectionID)
 
 discountPercent ()
 
 eZProductCollectionItem ($row)
 
 optionList ()
 
 removeThis ()
 
 verify ($currency=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 cleanupList ($productCollectionIDList)
 Removes all product collection items which related to the product collections specified in the parameter array. More...
 
static create ($productCollectionID)
 
static definition ()
 
static fetch ($id, $asObject=true)
 
static fetchList ($conditions=null, $asObjects=true, $offset=false, $limit=false)
 
- 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)
 

Public Attributes

 $ContentObject = null
 Stores the content object. More...
 
- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

eZProductCollectionItem handles one product item

Member Function Documentation

eZProductCollectionItem::__clone ( )

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

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

static eZProductCollectionItem::cleanupList (   $productCollectionIDList)
static

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

Parameters
array$productCollectionIDListarray of eZProductCollection IDs
Returns
void

Referenced by eZProductCollection\cleanupList(), and eZDBGarbageCollector\collectProductCollections().

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.
static eZProductCollectionItem::create (   $productCollectionID)
static

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

static eZProductCollectionItem::fetch (   $id,
  $asObject = true 
)
static
static eZProductCollectionItem::fetchList (   $conditions = null,
  $asObjects = true,
  $offset = false,
  $limit = false 
)
static
eZProductCollectionItem::optionList ( )

Referenced by copy().

eZProductCollectionItem::removeThis ( )
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: