Exemple #1
0
 function insertQidsForNews($subId, $listId, $acc_level)
 {
     $status = true;
     for ($k = 0; $k < count($subId); $k++) {
         $queue = new stdClass();
         $queue->id = 0;
         $queue->subscriber_id = $subId[$k];
         $queue->list_id = $listId;
         $queue->type = 1;
         $queue->mailing_id = 0;
         $queue->send_date = '0000-00-00 00:00:00';
         $queue->suspend = 0;
         $queue->delay = 0;
         $queue->acc_level = $acc_level;
         $queue->issue_nb = 0;
         $queue->published = 0;
         $queue->params = '';
         if (!queue::insert($queue)) {
             $status = false;
         }
     }
     return $status;
 }