private function replaceVariables($affiliate, Pap_Common_Banner $banner, $channelcode, $content) { $this->userFields->setUser($affiliate); $content = $this->userFields->replaceUserConstantsInText($content); if ($channelcode == null) { $channelcode = ''; } $content = Pap_Common_UserFields::replaceCustomConstantInText(Pap_Features_ZipBanner_UserFields::CHANNELID,$channelcode,$content); $content = $banner->replaceBannerConstants($content, $affiliate); $content = $banner->replaceUserConstants($content, $affiliate); $content = $banner->replaceUrlConstants($content, $affiliate, null, $banner->getDestinationUrl()); return $content; }