コード例 #1
0
 /**
  * Retrieve remove url
  *
  * @param Enterprise_Rma_Model_Shipping $track
  * @return string
  */
 public function getRemoveUrl($track)
 {
     return $this->getUrl('*/*/removeTrack/', array('id' => $this->getRma()->getId(), 'track_id' => $track->getId()));
 }
コード例 #2
0
ファイル: Data.php プロジェクト: hientruong90/ee_14_installer
 /**
  * Retrieve tracking url with params
  *
  * @param  string $key
  * @param  Enterprise_Rma_Model_Shipping|Enterprise_Rma_Model_Rma $model
  * @param  string $method - option
  * @return string
  */
 protected function _getTrackingUrl($key, $model, $method = 'getId')
 {
     $param = array('hash' => Mage::helper('core')->urlEncode("{$key}:{$model->{$method}()}:{$model->getProtectCode()}"));
     $storeId = is_object($model) ? $model->getStoreId() : null;
     $storeModel = Mage::app()->getStore($storeId);
     return $storeModel->getUrl('rma/tracking/popup', $param);
 }