Mage_Sales_Block_Order_Info Class Reference

Inheritance diagram for Mage_Sales_Block_Order_Info:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getPaymentInfoHtml ()
 getOrder ()
 addLink ($name, $path, $label)
 getLinks ()
 getReorderUrl ($order)
 getPrintUrl ($order)

Protected Member Functions

 _construct ()
 _prepareLayout ()

Protected Attributes

 $_links = array()


Detailed Description

Definition at line 35 of file Info.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 39 of file Info.php.

00040     {
00041         parent::_construct();
00042         $this->setTemplate('sales/order/info.phtml');
00043     }

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 45 of file Info.php.

00046     {
00047         if ($headBlock = $this->getLayout()->getBlock('head')) {
00048             $headBlock->setTitle($this->__('Order # %s', $this->getOrder()->getRealOrderId()));
00049         }
00050         $this->setChild(
00051             'payment_info',
00052             $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment())
00053         );
00054     }

addLink ( name,
path,
label 
)

Definition at line 71 of file Info.php.

00072     {
00073         $this->_links[$name] = new Varien_Object(array(
00074             'name' => $name,
00075             'label' => $label,
00076             'url' => empty($path) ? '' : Mage::getUrl($path, array('order_id' => $this->getOrder()->getId()))
00077         ));
00078         return $this;
00079     }

getLinks (  ) 

Definition at line 81 of file Info.php.

00082     {
00083         $this->checkLinks();
00084         return $this->_links;
00085     }

getOrder (  ) 

Retrieve current order model instance

Returns:
Mage_Sales_Model_Order

Definition at line 66 of file Info.php.

00067     {
00068         return Mage::registry('current_order');
00069     }

getPaymentInfoHtml (  ) 

Definition at line 56 of file Info.php.

00057     {
00058         return $this->getChildHtml('payment_info');
00059     }

getPrintUrl ( order  ) 

Definition at line 106 of file Info.php.

00107     {
00108         return $this->getUrl('sales/order/print', array('order_id' => $order->getId()));
00109     }

getReorderUrl ( order  ) 

Definition at line 101 of file Info.php.

00102     {
00103         return $this->getUrl('sales/order/reorder', array('order_id' => $order->getId()));
00104     }


Member Data Documentation

$_links = array() [protected]

Definition at line 37 of file Info.php.


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

Generated on Sat Jul 4 17:24:40 2009 for Magento by  doxygen 1.5.8