public function readRequestAffiliateVariables(Pap_Tracking_Request $request) { $this->setUserFirstName($request->getRequestParameter('customer_fname')); $this->setUserLastName($request->getRequestParameter('customer_lname')); $this->setUserEmail($request->getRequestParameter('email')); $this->setUserCity($request->getRequestParameter('city')); $this->setUserAddress($request->getRequestParameter('address1')); }
public function readRequestVariables() { $request = new Pap_Tracking_Request(); // assign posted variables to local variables $this->setCookie(stripslashes($request->getRequestParameter('user1'))); $this->setTotalCost($request->getRequestParameter('amount')); $this->setTransactionID($request->getRequestParameter('transaction_id')); $this->setProductID($request->getRequestParameter('transaction_ref')); $this->setSubscriptionID($request->getRequestParameter('subscription_id')); }
private function getClickTrackingCode() { $code = '<script id="pap_x2s6df8d" src="'.Gpf_Paths::getInstance()->getFullScriptsUrl().'clickjs.php" type="text/javascript">'."\n"; $code .= '</script>'."\n"; $code .= '<script type="text/javascript">'."\n"; $code .= '<!--'."\n"; $code .= "var AffiliateID='".$this->user->getRefId()."'\n"; $code .= "var BannerID='".$this->site->getId()."'\n"; if($this->request->getRequestParameter('channel') != '') { $code .= "var Channel='".$this->request->getRequestParameter('channel')."'\n"; } if($this->request->getRequestParameter('data1') != '') { $code .= "var Data1='".$this->request->getRequestParameter('data1')."'\n"; } if($this->request->getRequestParameter('data2') != '') { $code .= "var Data2='".$this->request->getRequestParameter('data2')."'\n"; } $code .= 'papTrack();'."\n"; $code .= '//-->'."\n"; $code .= '</script>'."\n"; return $code; }
public function readAdditionalVariables(Pap_Tracking_Request $request) { if ($this->getData1() == '') { $this->setData1($request->getRequestParameter('data1')); } if ($this->getData2() == '') { $this->setData2($request->getRequestParameter('data2')); } if ($this->getData3() == '') { $this->setData3($request->getRequestParameter('data3')); } if ($this->getData4() == '') { $this->setData4($request->getRequestParameter('data4')); } if ($this->getData5() == '') { $this->setData5($request->getRequestParameter('data5')); } if ($this->getCouponCode() == '') { $this->setCoupon($request->getRequestParameter('coupon_code')); } if ($this->getChannelId() == '') { $this->setChannelId($request->getRequestParameter('channelId')); } }
public static function isWrapperRequest(Pap_Common_Banner $banner, Pap_Tracking_Request $request){ return $banner->getWrapperId() !== null && $request->getRequestParameter(self::URL_PARAM_WRAPPER) !== ''; }