Mage_Adminhtml_Block_Sales_Order_Create_Items Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Items:

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 ()
 getItems ()
 getButtonsHtml ()

Protected Member Functions

 _toHtml ()


Detailed Description

Definition at line 35 of file Items.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 Items.php.

00038     {
00039         parent::__construct();
00040         $this->setId('sales_order_create_items');
00041     }


Member Function Documentation

_toHtml (  )  [protected]

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 64 of file Items.php.

00065     {
00066         if ($this->getStoreId()) {
00067             return parent::_toHtml();
00068         }
00069         return '';
00070     }

getButtonsHtml (  ) 

Definition at line 54 of file Items.php.

00055     {
00056         $addButtonData = array(
00057             'label' => Mage::helper('sales')->__('Add Products'),
00058             'onclick' => "order.productGridShow(this)",
00059             'class' => 'add',
00060         );
00061         return $this->getLayout()->createBlock('adminhtml/widget_button')->setData($addButtonData)->toHtml();
00062     }

getHeaderText (  ) 

Definition at line 43 of file Items.php.

00044     {
00045         return Mage::helper('sales')->__('Items Ordered');
00046     }

getItems (  ) 

Definition at line 48 of file Items.php.

00049     {
00050 //        return $this->getQuote()->getAllItems();
00051         return $this->getQuote()->getAllVisibleItems();
00052     }


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

Generated on Sat Jul 4 17:22:59 2009 for Magento by  doxygen 1.5.8