|
eZ Publish
[trunk]
|
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 () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| 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 19 of file ezproductcollectionitem.php.
Clones the collection item object and returns it. The ID of the clone is erased.
Definition at line 95 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 196 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 282 of file ezproductcollectionitem.php.
Referenced by eZDBGarbageCollector\collectProductCollections().
Definition at line 155 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 108 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 87 of file ezproductcollectionitem.php.
Referenced by eZShopOperationCollection\addToBasket().
| static eZProductCollectionItem::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public 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 26 of file ezproductcollectionitem.php.
Referenced by fetch(), fetchList(), eZWishList\itemCount(), eZProductCollection\itemList(), eZBasket\items(), eZWishList\items(), eZOrder\productItems(), eZContentObject\purge(), and eZProductCollection\verify().
Definition at line 146 of file ezproductcollectionitem.php.
Definition at line 21 of file ezproductcollectionitem.php.
Referenced by create().
| static eZProductCollectionItem::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 121 of file ezproductcollectionitem.php.
Referenced by eZShopOperationCollection\addToBasket(), calculatePriceWithOptions(), contentObject(), eZWishList\removeItem(), and eZShopOperationCollection\updateBasket().
| static eZProductCollectionItem::fetchList | ( | $ | conditions = null, |
| $ | asObjects = true, |
||
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
Definition at line 129 of file ezproductcollectionitem.php.
Referenced by calculatePriceWithOptions(), eZShopOperationCollection\handleUserCountry(), optionList(), removeThis(), and eZBasket\type().
Definition at line 168 of file ezproductcollectionitem.php.
Referenced by copy().
Definition at line 177 of file ezproductcollectionitem.php.
| eZProductCollectionItem::verify | ( | $ | currency = false | ) |
Definition at line 233 of file ezproductcollectionitem.php.
| eZProductCollectionItem::$ContentObject = null |
Stores the content object.
Definition at line 302 of file ezproductcollectionitem.php.