Exemple #1
0
 static function makeDB($row)
 {
     $in = @array('id' => $row['field_id'], 'active' => $row['field_active'], 'ordering' => $row['field_ordering'], 'name' => $row['field_name'], 'prompt' => $row['field_prompt'], 'normally' => $row['field_normally'], 'required' => $row['field_required'], 'type' => $row['field_type']);
     if (!empty($row['field_array'])) {
         $in['array'] = unserialize($row['field_array']);
     }
     $o = Pommo_Api::getParams(Pommo_Type::field(), $in);
     return $o;
 }
Exemple #2
0
 public static 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'], 'track' => $row['track'], 'ishtml' => $row['ishtml'], 'group' => $row['mailgroup'], 'tally' => $row['subscriberCount'], 'start' => $row['started'], 'end' => $row['finished'], 'sent' => $row['sent'], 'charset' => $row['charset'], 'status' => $row['status'], 'attachments' => $row['file_name'], 'track' => $row['track'], 'hits' => $row['hits']);
     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 ? Pommo_Api::getParams(Pommo_Type::mailingCurrent(), $in) : Pommo_Api::getParams(Pommo_Type::mailing(), $in);
     return $o;
 }
Exemple #3
0
 public static 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 ? Pommo_Api::getParams(Pommo_Type::subscriberPending(), $in) : Pommo_Api::getParams(Pommo_Type::subscriber(), $in);
     return $o;
 }
Exemple #4
0
 static function &makeDB(&$row)
 {
     $in = @array('id' => $row['group_id'], 'name' => $row['group_name']);
     $o = Pommo_Type::group();
     return Pommo_Api::getParams($o, $in);
 }
Exemple #5
0
 function &makeDB(&$row)
 {
     $in = @array('id' => $row['pending_id'], 'subscriber_id' => $row['subscriber_id'], 'code' => $row['pending_code'], 'array' => unserialize($row['pending_array']), 'type' => $row['pending_type']);
     $o = Pommo_Type::pending();
     return Pommo_Api::getParams($o, $in);
 }
 function &makeDB(&$row)
 {
     $in = @array('id' => $row['template_id'], 'name' => $row['name'], 'description' => $row['description'], 'body' => $row['body'], 'altbody' => $row['altbody']);
     $o = Pommo_Api::getParams(Pommo_Type::template(), $in);
     return $o;
 }
Exemple #7
0
 function &mailingCurrent()
 {
     $o = Pommo_Type::mailing();
     $o['touched'] = $o['current_id'] = $o['command'] = $o['serial'] = $o['code'] = $o['current_status'] = null;
     return $o;
 }