function &makeDB(&$row)
 {
     $in = @array('id' => $row['mailing_id'], 'fromname' => $row['fromname'], 'fromemail' => $row['fromemail'], 'frombounce' => $row['frombounce'], 'subject' => $row['subject'], 'body' => $row['body'], 'altbody' => $row['altbody'], 'ishtml' => $row['ishtml'], 'group' => $row['mailgroup'], 'tally' => $row['subscriberCount'], 'start' => $row['started'], 'end' => $row['finished'], 'sent' => $row['sent'], 'charset' => $row['charset'], 'status' => $row['status']);
     if ($row['status'] == 1) {
         $o = @array('command' => $row['command'], 'serial' => $row['serial'], 'code' => $row['securityCode'], 'touched' => $row['touched'], 'current_status' => $row['current_status']);
         $in = array_merge($o, $in);
     }
     $o = $row['status'] == 1 ? PommoAPI::getParams(PommoType::mailingCurrent(), $in) : PommoAPI::getParams(PommoType::mailing(), $in);
     return $o;
 }
 function &mailingCurrent()
 {
     $o = PommoType::mailing();
     $o['touched'] = $o['current_id'] = $o['command'] = $o['serial'] = $o['code'] = $o['current_status'] = null;
     return $o;
 }