Mage_Wishlist_Model_Item Class Reference

Inheritance diagram for Mage_Wishlist_Model_Item:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 getDataForSave ()
 loadByProductWishlist ($wishlistId, $productId, $sharedStores)

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Item.php.


Member Function Documentation

_construct (  )  [protected]

Enter description here...

Reimplemented from Varien_Object.

Definition at line 38 of file Item.php.

00039     {
00040         $this->_init('wishlist/item');
00041     }

getDataForSave (  ) 

Definition at line 43 of file Item.php.

00044     {
00045         $data = array();
00046         $data['product_id']  = $this->getProductId();
00047         $data['wishlist_id'] = $this->getWishlistId();
00048         $data['added_at']    = $this->getAddedAt() ? $this->getAddedAt() : Mage::getSingleton('core/date')->gmtDate();
00049         $data['description'] = $this->getDescription();
00050         $data['store_id']    = $this->getStoreId() ? $this->getStoreId() : Mage::app()->getStore()->getId();
00051 
00052         return $data;
00053     }

loadByProductWishlist ( wishlistId,
productId,
sharedStores 
)

Definition at line 55 of file Item.php.

00056     {
00057         $this->_getResource()->loadByProductWishlist($this, $wishlistId, $productId, $sharedStores);
00058         return $this;
00059     }


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

Generated on Sat Jul 4 17:24:57 2009 for Magento by  doxygen 1.5.8