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())); }
protected function getStatus($status) { $constants = new Pap_Common_Constants(); return $constants->getStatusAsText($status); }
public function getStatus() { $constants = new Pap_Common_Constants(); return $constants->getStatusAsText($this->transaction->getStatus()); }
/** * @param $row * @return DataRow or null */ public function filterRow(Gpf_Data_Row $row) { $row->set(Pap_Db_Table_Transactions::R_STATUS, Pap_Common_Constants::getStatusAsText($row->get(Pap_Db_Table_Transactions::R_STATUS))); $row->set(Pap_Db_Table_Transactions::PAYOUT_STATUS, Pap_Common_Constants::getPayoutStatusAsText($row->get(Pap_Db_Table_Transactions::PAYOUT_STATUS))); $row->set(Pap_Db_Table_Transactions::R_TYPE, Pap_Common_Constants::getTypeAsText($row->get(Pap_Db_Table_Transactions::R_TYPE))); return $row; }