本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Form_Container::getBackUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Form_Container::getBackUrl方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Form_Container::getBackUrl怎么用?PHP Mage_Adminhtml_Block_Widget_Form_Container::getBackUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Form_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Form_Container::getBackUrl方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getBackUrl
/**
* Provides url for Back button
*
* @return string
*/
public function getBackUrl()
{
if ($this->getRequest()->getParam('custom')) {
return $this->getUrl('*/*/select');
} else {
return parent::getBackUrl();
}
}
示例2: getBackUrl
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();
}
示例3: getBackUrl
/**
* Get URL for back (reset) button
*
* @return string
*/
public function getBackUrl()
{
$referer = $this->getRequest()->getServer('HTTP_REFERER');
if (strpos($referer, 'sales_order') !== false) {
return $this->getUrl('*/sales_order/view/', array('order_id' => $this->getRma()->getOrderId(), 'active_tab' => 'order_rma'));
} elseif (strpos($referer, 'customer') !== false) {
return $this->getUrl('*/customer/edit/', array('id' => $this->getRma()->getCustomerId(), 'active_tab' => 'customer_edit_tab_rma'));
} else {
return parent::getBackUrl();
}
}
示例4: getBackUrl
/**
* Retrieves url for Back button
*
* @return string
*/
public function getBackUrl()
{
if ($this->_getCategoryId() && $this->_getProductId()) {
return $this->getUrl('*/*/select', array('type' => 'category', 'product' => $this->_getProductId()));
} elseif ($this->_getProductId()) {
return $this->getUrl('*/*/select', array('type' => 'product'));
} elseif ($this->_getCategoryId()) {
return $this->getUrl('*/*/select', array('type' => 'category'));
}
return parent::getBackUrl();
}
示例5: getBackUrl
/**
* Retrieve form back url
*
* @return string
*/
public function getBackUrl()
{
if ($this->getRequest()->getParam('category')) {
return $this->getUrl('*/catalog_category/edit', array('clear' => 1, 'id' => $this->getEvent()->getCategoryId()));
} elseif (!$this->getEvent()->getId() && $this->getEvent()->getCategoryId()) {
return $this->getUrl('*/*/new', array('_current' => true, 'category_id' => null));
}
return parent::getBackUrl();
}