Пример #1
0
 */
/*
echo "\n\n\nPlaces query status to get the different location \n";
foreach ($invited->getInvitedForTheQueue() as $invite=> $value)
{
    $iId       = $value['invited_id'];
    $tz        = $value['timezone'];
    $location  = $value['location'];
    echo "tz = $tz iId = $iId location = $location \n";
}
*/
/**
 * inserting the new invited into the queue
 */
// 3dimensional array
foreach ($invited->getInvitedForTheQueue() as $invite => $value) {
    $iId = $value['invited_id'];
    $tz = $value['timezone'];
    $location = $value['location'];
    if ($invitedQueue->isInvitedIdExistToTheQueue($iId, $database) == FALSE) {
        if (!empty($tz)) {
            //set and get the time plus days
            $invitedLocation->__setLocationByName($location, $database);
            Time::setTimeZoneDateTime($tz);
            Time::__setDateAddDays(Time::getTimezoneDate(), "+ 1 day");
            $date1 = Time::getDateAddDays__();
            Time::__setDateAddDays(Time::getTimezoneDate(), "+ 3 days");
            $date2 = Time::getDateAddDays__();
            Time::__setDateAddDays(Time::getTimezoneDate(), "+ 5 days");
            $date3 = Time::getDateAddDays__();
            echo "\n date1  {$date1} , date2  {$date2}, date3 {$date3} <br>\n";