Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Cart Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Cart:

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 ()
 canDisplayItemQty ()
 getIdentifierId ($item)

Protected Attributes

 $_sidebarStorageAction = 'cartItem'


Detailed Description

Definition at line 34 of file Cart.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 38 of file Cart.php.

00039     {
00040         parent::__construct();
00041         $this->setId('sales_order_create_sidebar_cart');
00042         $this->setDataId('cart');
00043     }


Member Function Documentation

canDisplayItemQty (  ) 

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.

Definition at line 65 of file Cart.php.

00066     {
00067         return true;
00068     }

getHeaderText (  ) 

Definition at line 45 of file Cart.php.

00046     {
00047         return Mage::helper('sales')->__('Shopping Cart');
00048     }

getIdentifierId ( item  ) 

Retrieve identifier of block item

Parameters:
Varien_Object $item
Returns:
int

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.

Definition at line 76 of file Cart.php.

00077     {
00078         return $item->getId();
00079     }

getItemCollection (  ) 

Retrieve item collection

Returns:
mixed

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.

Definition at line 55 of file Cart.php.

00056     {
00057         $collection = $this->getData('item_collection');
00058         if (is_null($collection)) {
00059             $collection = $this->getCreateOrderModel()->getCustomerCart()->getAllVisibleItems();
00060             $this->setData('item_collection', $collection);
00061         }
00062         return $collection;
00063     }


Member Data Documentation

$_sidebarStorageAction = 'cartItem' [protected]

Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.

Definition at line 36 of file Cart.php.


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