return !empty($this->msgid);
}
+ function whereAddDeliveryStatus($delivered = false)
+ {
+ $tn = $this->tableName();
+ if ($delivered) {
+ $this->whereAdd("$tn.msgid IS NOT NULL AND $tn.msgid != ''");
+ } else {
+ $this->whereAdd("$tn.msgid IS NULL OR $tn.msgid = ''");
+ }
+ }
+
function status() // used by commandline reporting at present..
{
switch($this->event_id) {
// then we can build a join..
$d = DB_DataObject::Factory($q['ontable']);
$ji = $d->autoJoin();
- echo '<PRE>';print_R($jinfo);
+ //echo '<PRE>';print_R($ji);
// get cols
- foreach($ji['cols'] as $cname=>$fname) {
- //$this->selectAdd($fname . ' as ontable_id_' . $cname );
+ foreach($ji['join_names'] as $cname=>$fname) {
+ $this->selectAdd($fname . ' as ontable_id_' . $cname );
}
//$this->selectAdd($d->_query['data_select']); -- this will cause the same dataIndex...