Exemple #1
0
 public function initCountryCodeTransaction(Pap_Common_Transaction $transaction) {
     if (is_null($transaction->getCountryCode()) || $transaction->getCountryCode() === '') {
         $context = new Gpf_Data_Record(array(Pap_Db_Table_RawImpressions::IP, Pap_Db_Table_Impressions::COUNTRYCODE), array($transaction->getIp(), ''));
         $this->getCountryCode($context);
         $transaction->setCountryCode($context->get(Pap_Db_Table_Impressions::COUNTRYCODE));
     }
 }
 private function hashTransaction(Pap_Common_Transaction $transaction) {
     return $transaction->getUserId(). $transaction->getCampaignId(). $transaction->getBannerId(). $transaction->getChannel() .
     $transaction->getStatus() . $transaction->getTier(). $transaction->getType(). $transaction->getPayoutStatus() . $this->dateTimeToDate($transaction->getDateInserted() . $transaction->getCountryCode());
 }