_objectId = 'id'; $this->_blockGroup = 'aw_hdu3'; $this->_controller = 'adminhtml_ticket'; $this->_mode = 'new'; parent::__construct(); } /** * @return string */ public function getHeaderText() { return $this->__('New Ticket'); } /** * @return string */ public function getHeaderCssClass() { return 'head-' . strtr($this->_controller, '_', '-'); } public function getBackUrl() { if ($this->getRequest()->getParam('return_customer_id')) { return $this->getUrl('adminhtml/customer/edit/', array('id' => $this->getRequest()->getParam('return_customer_id'), 'tab' => 'Tickets')); } if ($this->getRequest()->getParam('return_order_id')) { return $this->getUrl('adminhtml/sales_order/view/', array('order_id' => $this->getRequest()->getParam('return_order_id'), 'tab' => 'Tickets')); } return parent::getBackUrl(); } }