protected function setVariableValues() {
     parent::setVariableValues();
     $this->setVariable('campaignid', $this->campaign->getId());
     $this->setVariable('campaignname', Gpf_Lang::_localizeRuntime($this->campaign->getName(), $this->getRecipientLanguage()));
     $this->setVariable('campaignstatus', Pap_Common_Constants::getStatusAsText($this->campaign->getCampaignStatus()));
     $this->setVariable('campaigntype', $this->getTypeAsText($this->campaign->getCampaignType()));
     $this->setVariable('campaigndescription', Gpf_Lang::_localizeRuntime($this->campaign->getDescription(), $this->getRecipientLanguage()));
     $this->setVariable('campaignlongdescription', Gpf_Lang::_localizeRuntime($this->campaign->getLongDescription(), $this->getRecipientLanguage()));
 }
 private function checkCampaign(Pap_Contexts_Tracking $context, Pap_Common_Campaign $campaign) {
     if ($this->isAccountRecognizedNotFromDefault($context) && $campaign->getAccountId() != $context->getAccountId()) {
         $context->debug("Campaign with Id: ".$campaign->getId()." and name '".$campaign->getName()."' cannot be used with accountId: '". $context->getAccountId() ."'!");
         throw new Gpf_Exception("Campaign is from differen account");
     }
     $status = $campaign->getCampaignStatus();
     if($status == Pap_Db_Campaign::CAMPAIGN_STATUS_STOPPED
         || $status == Pap_Db_Campaign::CAMPAIGN_STATUS_STOPPED_INVISIBLE) {
         $context->debug("Campaign with Id: ".$campaign->getId()." and name '".$campaign->getName()."' is stopped, cannot be used!");
         throw new Gpf_Exception("Campaign stopped");
     }
     if($status == Pap_Db_Campaign::CAMPAIGN_STATUS_DELETED) {
         $context->debug("Campaign with Id: ".$campaign->getId()." and name '".$campaign->getName()."' is deleted, cannot be used!");
         throw new Gpf_Exception("Campaign deleted");
     }
 }