function &makeDB(&$row, $pending = FALSE) { $in = @array('id' => $row['subscriber_id'], 'email' => $row['email'], 'touched' => $row['time_touched'], 'registered' => $row['time_registered'], 'flag' => $row['flag'], 'ip' => $row['ip'], 'status' => $row['status']); if ($pending) { $o = array('pending_code' => $row['pending_code'], 'pending_array' => $row['pending_array'], 'pending_type' => $row['pending_type']); $in = array_merge($o, $in); } $o = $pending ? PommoAPI::getParams(PommoType::subscriberPending(), $in) : PommoAPI::getParams(PommoType::subscriber(), $in); return $o; }
function &subscriberPending() { $o = PommoType::subscriber(); $o['pending_code'] = $o['pending_array'] = $o['pending_type'] = null; return $o; }