|
eZ Publish
[4.2]
|
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) | |
Static Public Member Functions | |
| static | cleanupList ($productCollectionIDList) |
| Removes all product collection items which related to the product collections specified in the parameter array. | |
| static | create ($productCollectionID) |
| static | definition () |
| static | fetch ($id, $asObject=true) |
| static | fetchList ($conditions=null, $asObjects=true, $offset=false, $limit=false) |
Public Attributes | |
| $ContentObject = null | |
| Stores the content object. | |
eZProductCollectionItem handles one product item
Definition at line 39 of file ezproductcollectionitem.php.
| eZProductCollectionItem::__clone | ( | ) |
Clones the collection item object and returns it. The ID of the clone is erased.
Definition at line 115 of file ezproductcollectionitem.php.
| eZProductCollectionItem::calculatePriceWithOptions | ( | $ | currency = false | ) |
Goes trough all options and finds the attribute they points to and calls productOptionInformation() to fetch the option data.
Definition at line 216 of file ezproductcollectionitem.php.
Referenced by verify().
| static eZProductCollectionItem::cleanupList | ( | $ | productCollectionIDList | ) | [static] |
Removes all product collection items which related to the product collections specified in the parameter array.
| array | $productCollectionIDList | array of eZProductCollection IDs |
Definition at line 302 of file ezproductcollectionitem.php.
Referenced by eZDBGarbageCollector\collectProductCollections().
| eZProductCollectionItem::contentObject | ( | ) |
Definition at line 175 of file ezproductcollectionitem.php.
Referenced by calculatePriceWithOptions().
| eZProductCollectionItem::copy | ( | $ | collectionID | ) |
Copies the collection object item and the option, the new copy will point to the collection $collectionID.
Definition at line 128 of file ezproductcollectionitem.php.
| static eZProductCollectionItem::create | ( | $ | productCollectionID | ) | [static] |
Creates a new empty collection item which belongs to collection $collectionID and returns it.
Definition at line 107 of file ezproductcollectionitem.php.
| static eZProductCollectionItem::definition | ( | ) | [static] |
The definition array is an associative array consists of these keys:
asc or desc.Example:
static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 46 of file ezproductcollectionitem.php.
Referenced by fetch(), fetchList(), eZWishList\itemCount(), eZProductCollection\itemList(), eZBasket\items(), eZWishList\items(), eZOrder\productItems(), eZContentObject\purge(), and eZProductCollection\verify().
| eZProductCollectionItem::discountPercent | ( | ) |
Definition at line 166 of file ezproductcollectionitem.php.
| eZProductCollectionItem::eZProductCollectionItem | ( | $ | row | ) |
Definition at line 41 of file ezproductcollectionitem.php.
Referenced by create().
| static eZProductCollectionItem::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 141 of file ezproductcollectionitem.php.
Referenced by calculatePriceWithOptions(), contentObject(), and eZWishList\removeItem().
| static eZProductCollectionItem::fetchList | ( | $ | conditions = null, |
| $ | asObjects = true, |
||
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
Definition at line 149 of file ezproductcollectionitem.php.
Referenced by calculatePriceWithOptions(), optionList(), removeThis(), and eZBasket\type().
| eZProductCollectionItem::optionList | ( | ) |
Definition at line 188 of file ezproductcollectionitem.php.
Referenced by copy().
| eZProductCollectionItem::removeThis | ( | ) |
Definition at line 197 of file ezproductcollectionitem.php.
| eZProductCollectionItem::verify | ( | $ | currency = false | ) |
Definition at line 253 of file ezproductcollectionitem.php.
| eZProductCollectionItem::$ContentObject = null |
Stores the content object.
Definition at line 322 of file ezproductcollectionitem.php.