Ejemplo n.º 1
0
 public function executeStats(sfWebRequest $request)
 {
     //    $this->sent = PetitionSigningContactTable::getInstance()->countSentMails();
     //    $this->pending = PetitionSigningContactTable::getInstance()->countPendingMails();
     //    $this->outgoing = PetitionSigningContactTable::getInstance()->countOutgoingMails();
     $this->sent = PetitionSigningWaveTable::getInstance()->sumContactStatus(PetitionSigning::STATUS_SENT);
     $this->pending = PetitionSigningWaveTable::getInstance()->sumContactStatus(PetitionSigning::STATUS_PENDING);
     $this->outgoing = PetitionSigningWaveTable::getInstance()->sumContactStatus(PetitionSigning::STATUS_VERIFIED);
 }
Ejemplo n.º 2
0
 public function countMailsOutgoing()
 {
     return PetitionSigningWaveTable::getInstance()->sumContactStatus(PetitionSigning::STATUS_VERIFIED, $this);
     //    return PetitionSigningContactTable::getInstance()->countOutgoingMails($this);
 }