usr bin env php php define BASEPATH define APPPATH require_once librar

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env php
<?php
define('BASEPATH', '../../');
define('APPPATH', '../');
require_once('../libraries/DoctrineORM.php');
new DoctrineORM();
echo "Receiving events\n";
$events = Queue::receiveEvents(date('Y-m-d H:i:s', time()));
foreach ($events as $event)
{
echo "Receive event --- ".$event['EventID']."\n";
echo $event['EventName'];
echo $event['ShouldFireAt'];
echo "\n";
Queue::markEventDone($event['EventID']);
}
?>