Exemplo n.º 1
0
 /**
  * Count the number of drafted mails for an account
  *
  * @param int $account_id The account id
  *
  * @return int
  */
 public static function countDrafted($account_id)
 {
     $where['account_id'] = "= '{$account_id}'";
     $where['account_class'] = "= 'CSourcePOP'";
     $where['draft'] = "= '1' ";
     $mail = new CUserMail();
     return $mail->countList($where);
 }