Public Member Functions | |
__construct () | |
getHeaderText () | |
getItemCollection () | |
getItemId ($item) |
Definition at line 34 of file Wishlist.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 37 of file Wishlist.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('sales_order_create_sidebar_wishlist'); 00041 $this->setDataId('wishlist'); 00042 }
getHeaderText | ( | ) |
Definition at line 44 of file Wishlist.php.
00045 { 00046 return Mage::helper('sales')->__('Wishlist'); 00047 }
getItemCollection | ( | ) |
Retrieve item collection
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.
Definition at line 54 of file Wishlist.php.
00055 { 00056 $collection = $this->getData('item_collection'); 00057 if (is_null($collection)) { 00058 if ($collection = $this->getCreateOrderModel()->getCustomerWishlist()) { 00059 $collection = $collection->getProductCollection() 00060 ->addAttributeToSelect('name') 00061 ->addAttributeToSelect('price') 00062 ->addAttributeToSelect('small_image') 00063 ->load(); 00064 } 00065 $this->setData('item_collection', $collection); 00066 } 00067 return $collection; 00068 }
getItemId | ( | $ | item | ) |
Retrieve item identifier of block item
mixed | $item |
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.
Definition at line 70 of file Wishlist.php.