$this->send_to = $opts['send-to'];
}
+
+ $w = DB_DataObject::factory('core_notify_recur');
+ if (is_a($w, 'DB_DataObject')) {
+ $w->generateNotifications();
+ }
+
+
//DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->table);
die("DONE\n");
}
- function run($id, $email)
+ function run($id, $email, $cmdOpts="")
{
// phpinfo();exit;
$tn = tempnam(ini_get('session.save_path'),'stdout') . '.stdout';
if (!empty($this->send_to)) {
$app .= ' --sent-to='.escapeshellarg($this->send_to);
}
- $cmd = $php . ' ' . $app; //. ' &';
+ $cmd = $php . ' ' . $app . ' ' . $cmdOpts; //. ' &';
$pipe = array();