Beispiel #1
0
require_once "{$db}/InvitedLocation.php";
require_once "{$db}/InvitedQueue.php";
require_once "{$time}/Time.php";
//initialized
$database = new Database();
$invited = new Invitation\Invited();
$invitedActivity = new Invitation\InvitedActivity();
$invitedQueue = new Invitation\InvitedQueue();
$invitedLocation = new FashionSponge\InvitedLocation();
//connect
$database->connect();
//get total lacking invited to in queue
$totalLackingInTheQueue = $invitedQueue->getTotalLackingInTheQueue(200, $database);
echo " Total invited needs to be in the queue is =  " . $totalLackingInTheQueue . "<br> \n ";
echo " Total queueing are " . $invitedQueue->getTotalQueueing($database) . "<br> \n";
echo " Total queued are " . $invitedQueue->getTotalQueued($database) . "<br> \n <hr>";
//set and get the new invited in the queue
// $invited->setInvitedForTheQueue($totalLackingInTheQueue, $database, $invited);
$invited->_setInvitedForTheQueueRandom($totalLackingInTheQueue, $database);
/**
 * print the status of getting the location invited
 * print_r($invited->getInvitedForTheQueue());
 */
/*
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";
Beispiel #2
0
require_once "{$db}/InvitedLocation.php";
require_once "{$db}/InvitedQueue.php";
require_once "{$time}/Time.php";
//initialized
$database = new Database();
$invited = new Invitation\Invited();
$invitedActivity = new Invitation\InvitedActivity();
$invitedQueue = new Invitation\InvitedQueue();
$invitedLocation = new FashionSponge\InvitedLocation();
//connect
$database->connect();
//get total lacking invited to in queue
$totalLackingInTheQueue = $invitedQueue->getTotalLackingInTheQueue(200, $database);
echo " Total invited needs to be in the queue is =  " . $totalLackingInTheQueue . "<br> \n <hr>";
echo " Total waiting queueing are " . $invitedQueue->getTotalQueueing($database) . "<br> \n";
echo " Total waiting queued are " . $invitedQueue->getTotalQueued($database) . "<br> \n";
//set and get the new invited in the queue
// $invited->setInvitedForTheQueue($totalLackingInTheQueue, $database, $invited);
$invited->_setInvitedForTheQueueRandom($totalLackingInTheQueue, $database);
/**
 * print the status of getting the location invited
 * print_r($invited->getInvitedForTheQueue());
 */
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";
}
/**