getRotatorBannerParamName() public static method

public static getRotatorBannerParamName ( )
 public function getSrcCode(Pap_Common_Banner $banner, Pap_Common_User $user, Pap_Db_Channel $channel = null, $data1 = '', $data2 = ''){
     $code = $this->getScriptUrl("imp.php");
     $code .= "?".Pap_Tracking_Request::getAffiliateClickParamName()."=".$user->getRefId();
     $code .= "&".Pap_Tracking_Request::getBannerClickParamName()."=".$banner->getId();
     if ($banner->getParentBannerId() != null) {
         $code .= "&".Pap_Tracking_Request::getRotatorBannerParamName()."=".$banner->getParentBannerId();
     }
     if($channel != null && is_object($channel)) {
         $code .= "&".Pap_Tracking_Request::getChannelParamName()."=".$channel->getValue();
     }
     if($data1 != '') {
         $code .= "&".Pap_Tracking_Request::getExtraDataParamName(1)."=".$data1;
     }
     if($data2 != '') {
         $code .= "&".Pap_Tracking_Request::getExtraDataParamName(2)."=".$data2;
     }
     
     return $code;
 }
Example #2
0
 public function getRotatorBannerId() {
     return $this->getRequestObject()->getRequestParameter(Pap_Tracking_Request::getRotatorBannerParamName());
 }
 public static function getBannerScriptUrl($userId, $bannerId, $channelId = null, $parentBannerId = null){
     $url =  Gpf_Paths::getInstance()->getFullScriptsUrl().'banner.php'.
                 '?';
     $url .= Gpf_Settings::get(Pap_Settings::PARAM_NAME_USER_ID).'='.$userId;
     $url .= '&'.Gpf_Settings::get(Pap_Settings::PARAM_NAME_BANNER_ID).'='.$bannerId;
     if($channelId != null){
         $url .= '&'.Pap_Tracking_Request::getChannelParamName().'='.$channelId;
     }
     if($parentBannerId != null) {
         $url .= '&'.Pap_Tracking_Request::getRotatorBannerParamName().'='.$parentBannerId;
     }
     return $url;
 }
 function getBannerParams(Pap_Common_Banner $banner = null){
   $clickUrl = '';
   if ($banner != null) {
         $clickUrl .= "&".Pap_Tracking_Request::getBannerClickParamName()."=".$banner->getId();
         if ($banner->getParentBannerId()!= null) {
             $clickUrl .= "&".Pap_Tracking_Request::getRotatorBannerParamName()."=".$banner->getParentBannerId();
         }
     }
     return $clickUrl;
 }