protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     $this->setCanDisplayTotalPaid($this->getParentBlock()->getCanDisplayTotalPaid());
     $this->setCanDisplayTotalRefunded($this->getParentBlock()->getCanDisplayTotalRefunded());
     $this->setCanDisplayTotalDue($this->getParentBlock()->getCanDisplayTotalDue());
 }
Пример #2
0
 /**
  * Retrieve required options from parent
  */
 protected function _beforeToHtml()
 {
     if (!$this->getParentBlock()) {
         Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
     }
     $this->setOrder($this->getParentBlock()->getSource());
     parent::_beforeToHtml();
 }