2 require_once 'MTrackWeb.php';
5 * notification script runner
7 * This does not actualy send stuf out, it only starts the NotifySend/{id}
8 * which does the actuall notifcations.
10 * It manages a pool of notifiers.
15 class Pman_Core_Notify extends Pman
20 $ff = HTML_FlexyFramework::get();
24 HTML_FlexyFramework::ensureSingle(__FILE__, $this);
33 //DB_DataObject::debugLevel(1);
34 date_default_timezone_set('UTC');
37 $w = DB_DataObject::factory('core_notify');
38 $w->whereAdd('act_when < sent');
39 $w->orderBy('act_when ASC'); // oldest first.
40 $w->limit(1000); // we can run 1000 ...
41 $ar = $w->fetchAll('id');
47 if (!$this->poolfree()) {
51 $p = array_shift($ar);