Public Member Functions | |
getPaymentInfoHtml () | |
getOrder () | |
addLink ($name, $path, $label) | |
getLinks () | |
getReorderUrl ($order) | |
getPrintUrl ($order) | |
Protected Member Functions | |
_construct () | |
_prepareLayout () | |
Protected Attributes | |
$_links = array() |
Definition at line 35 of file Info.php.
_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
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 | ( | ) |
getOrder | ( | ) |
Retrieve current order model instance
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 | ) |
getReorderUrl | ( | $ | order | ) |