Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Wishlist Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Wishlist:

Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract Mage_Adminhtml_Block_Sales_Order_Create_Abstract Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getHeaderText ()
 getItemCollection ()
 getItemId ($item)


Detailed Description

Definition at line 34 of file Wishlist.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

getHeaderText (  ) 

Definition at line 44 of file Wishlist.php.

00045     {
00046         return Mage::helper('sales')->__('Wishlist');
00047     }

getItemCollection (  ) 

Retrieve item collection

Returns:
mixed

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

Parameters:
mixed $item
Returns:
int

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.

Definition at line 70 of file Wishlist.php.

00071     {
00072         return $item->getWishlistItemId();
00073     }


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

Generated on Sat Jul 4 17:23:00 2009 for Magento by  doxygen 1.5.8