public function equals(Pap_Tracking_Cookie_ClickData $clickData) { 
     return (
     $this->getBannerId() == $clickData->getBannerId() &&
     $this->getChannelId() == $clickData->getChannelId() &&
     $this->getTimestamp() == $clickData->getTimestamp());
 }
 /**
  * @return Pap_Tracking_Cookie_ClickData
  */
 public function getLastClickCookie() {
     $cookie = new Pap_Tracking_Cookie_ClickData();
     $cookie->decode($this->getRequestParameter(self::PARAM_ACTION_CLIENT_LAST_CLICK));
     return $cookie;
 }  
Beispiel #3
0
 public function setLastClickCookie(Pap_Db_RawClick $click) {
     $cookie = new Pap_Tracking_Cookie_ClickData();
     $cookie->setClick($click);
     $this->setCookie(self::LAST_CLICK_COOKIE_NAME,
     $cookie,
     time() + self::COOKIE_LIFETIME_FOREVER,
     true);
 }
 /**
  *
  * @param $clickData
  * @return Pap_Tracking_Cookie_ClickData
  */
 protected function getClickCookie(Pap_Tracking_Cookie_ClickData $clickData) {
 	try {
     	if ($this->isClickDataValid($clickData->getClick()->getUserId(), $clickData->getClick()->getCampaignId())) {
     		return $clickData;
     	}
 	} catch (Gpf_Exception $e) {
 	}
     return null;
 }