
Public Member Functions | |
| __construct () | |
| getHeaderText () | |
| getItemCollection () | |
| canDisplayItemQty () | |
| getIdentifierId ($item) | |
Protected Attributes | |
| $_sidebarStorageAction = 'cartItem' | |
Definition at line 34 of file Cart.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 38 of file Cart.php.
00039 { 00040 parent::__construct(); 00041 $this->setId('sales_order_create_sidebar_cart'); 00042 $this->setDataId('cart'); 00043 }
| canDisplayItemQty | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.
Definition at line 65 of file Cart.php.
| 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
| Varien_Object | $item |
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.
Definition at line 76 of file Cart.php.
| getItemCollection | ( | ) |
Retrieve item collection
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 }
$_sidebarStorageAction = 'cartItem' [protected] |
Reimplemented from Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract.
1.5.8