Exemple #1
0
 /**
  * Insert a new log entry.
  *
  * @param $userId
  * @param $campaignId
  *
  * @throws \Cubex\Cassandra\CassandraException
  */
 public static function addLogEntry($userId, $campaignId)
 {
     if (self::$_sentEmailLog === null) {
         self::$_sentEmailLog = new static();
     }
     self::$_sentEmailLog->getCf()->insert($userId . '-' . $campaignId, [date('Y-m-d') => 1]);
 }
Exemple #2
0
 /**
  * Insert a new log entry.
  *
  * @param $userId
  * @param $mailerId
  *
  * @throws \Cubex\Cassandra\CassandraException
  */
 public static function addLogEntry($userId, $mailerId)
 {
     if (self::$_mailerLog === null) {
         self::$_mailerLog = new static();
     }
     self::$_mailerLog->getCf()->insert($userId, [$mailerId => time()]);
 }