
Public Member Functions | |
| getCustomerIdFieldName () | |
| setCustomerIdFieldName ($fieldName) | |
| fetchItemsCount (Mage_Wishlist_Model_Wishlist $wishlist) | |
Protected Member Functions | |
| _construct () | |
Protected Attributes | |
| $_itemsCount = null | |
| $_customerIdFieldName = 'customer_id' | |
Definition at line 35 of file Wishlist.php.
| _construct | ( | ) | [protected] |
Resource initialization
Reimplemented from Mage_Core_Model_Resource_Abstract.
Definition at line 42 of file Wishlist.php.
00043 { 00044 $this->_init('wishlist/wishlist', 'wishlist_id'); 00045 }
| fetchItemsCount | ( | Mage_Wishlist_Model_Wishlist $ | wishlist | ) |
Definition at line 58 of file Wishlist.php.
00059 { 00060 if (is_null($this->_itemsCount)) { 00061 $collection = $wishlist->getProductCollection() 00062 //->addAttributeToFilter('store_id', array('in'=>$wishlist->getSharedStoreIds())) 00063 ->addStoreFilter(); 00064 00065 Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); 00066 Mage::getSingleton('catalog/product_visibility')->addVisibleInSiteFilterToCollection($collection); 00067 00068 $this->_itemsCount = $collection->getSize(); 00069 } 00070 00071 return $this->_itemsCount; 00072 }
| getCustomerIdFieldName | ( | ) |
| setCustomerIdFieldName | ( | $ | fieldName | ) |
$_customerIdFieldName = 'customer_id' [protected] |
Definition at line 40 of file Wishlist.php.
$_itemsCount = null [protected] |
Definition at line 38 of file Wishlist.php.
1.5.8