$date3 = $queueInvited['fs_invited_queue_date_send3']; $date = $queueInvited['fs_invited_queue_date']; $status = $queueInvited['fs_invited_queue_status']; $action = $invitedActivity->getMessageReceivedInvite(); $invited->setInvitedInfoById($iId, $database); // echo $qId . "\n"; //set queue location info echo "Name: <span style='color:green' >" . $invited->getFullName() . "</span></span> <br>\n"; //update total sent to zero /* $alert->alert("Location Info ", $database->update('fs_invited', array('temail_sent' => 0), "invited_id = $iId"), " set qid = $qId \n" ); */ if ($invited->getTotalEmailSent_() == 1) { //send email version1 echo "email send v1 \n<br>"; } elseif ($invited->getTotalEmailSent_() == 2) { //send email version2 echo "email send v2 \n<br>"; } elseif ($invited->getTotalEmailSent_() == 3) { //send email version3 echo "email send v3 \n<br>"; } else { echo "Error\n<br>"; } echo "{$counter}.) \n"; $alert->alert("Location Info ", $invitedLocation->setInvitedLocationInfo($locationId, $database), " set qid = {$qId} <br>\n"); //set invited info $alert->alert("invited ", $invited->setInvitedInfoById($iId, $database), " set iId = {$iId} <br>\n");
$status = $queueInvited['fs_invited_queue_status']; $action = 'Received new invited'; // echo $qId . "\n"; //set queue location info //update total sent to zero $alert->alert("Location Info ", $database->update('fs_invited', array('temail_sent' => 0), "invited_id = {$iId}"), " set qid = {$qId} \n"); echo "{$counter}.) \n"; $alert->alert("Location Info ", $invitedLocation->setInvitedLocationInfo($locationId, $database), " set qid = {$qId} \n"); //set invited info $alert->alert("invited ", $invited->setInvitedInfoById($iId, $database), " set iId = {$iId} \n"); echo "Name: <span style='color:green' >" . $invited->getFullName() . "</span></span> <br>\n"; echo "First name " . $invited->getFirstName(); //set time zone $alert->alert("Time ", Time::setTimeZoneDateTime($invited->getTimeZone()), " set timezone = " . $invited->getTimeZone() . " \n"); //if the total sent email is greater than 3 then it should invited email should not received an invited if ($invited->getTotalEmailSent_() <= 2) { //condition combine queue date and specific location time if ($invited->getTotalEmailSent_() == 0) { $dateTime = $date1 . ' ' . $invitedLocation->getLocationTime1(); echo "send new email v1 set date\n"; } elseif ($invited->getTotalEmailSent_() == 1) { $dateTime = $date2 . ' ' . $invitedLocation->getLocationTime2(); echo "send new email v2 set date\n"; } elseif ($invited->getTotalEmailSent_() == 2) { $dateTime = $date3 . ' ' . $invitedLocation->getLocationTime3(); echo "send new email v3 set date\n"; } else { echo "\n else no send new email total sent is greater than 2 and value i" . $invited->getTotalEmailSent_(); } $alert->alert("Date Time Send", $dateTime, " set = " . $dateTime . " \n"); echo "set time zone = " . Time::getTimeZoneDateTime24();