Beispiel #1
0
 /**
  * Constructor: Setup our enviroment, load the queue and then
  * process the message.
  */
 public function __construct()
 {
     # Get the queue
     $this->queue = Queue::getQueue();
     # Now process
     $this->process();
 }
Beispiel #2
0
<?php

include 'message.php';
include 'queue.php';
Queue::getQueue();
$key = rand(1, 1000000);
$data = array('time' => time(), 'key' => $key, 'request' => 'start');
# Add the message into the queue
Queue::addMessage($key, $data);