Public Member Functions | |
getDataForSave () | |
loadByProductWishlist ($wishlistId, $productId, $sharedStores) | |
Protected Member Functions | |
_construct () |
Definition at line 35 of file Item.php.
_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 }