Mage_Adminhtml_Block_Sales_Order_Create_Header Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Header:

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.

Protected Member Functions

 _toHtml ()


Detailed Description

Create order form header

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Header.php.


Member Function Documentation

_toHtml (  )  [protected]

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 34 of file Header.php.

00035     {
00036         if ($this->_getSession()->getOrder()->getId()) {
00037             return '<h3 class="icon-head head-sales-order">'.Mage::helper('sales')->__('Edit Order #%s', $this->_getSession()->getOrder()->getIncrementId()).'</h3>';
00038         }
00039 
00040         $customerId = $this->getCustomerId();
00041         $storeId    = $this->getStoreId();
00042         $out = '';
00043         if ($customerId && $storeId) {
00044             $out.= Mage::helper('sales')->__('Create New Order for %s in %s', $this->getCustomer()->getName(), $this->getStore()->getName());
00045         }
00046         elseif (!is_null($customerId) && $storeId){
00047             $out.= Mage::helper('sales')->__('Create New Order for New Customer in %s', $this->getStore()->getName());
00048         }
00049         elseif ($customerId) {
00050             $out.= Mage::helper('sales')->__('Create New Order for %s', $this->getCustomer()->getName());
00051         }
00052         elseif (!is_null($customerId)){
00053             $out.= Mage::helper('sales')->__('Create New Order for New Customer');
00054         }
00055         else {
00056             $out.= Mage::helper('sales')->__('Create New Order');
00057         }
00058         $out = $this->htmlEscape($out);
00059         $out = '<h3 class="icon-head head-sales-order">' . $out . '</h3>';
00060         return $out;
00061     }


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