コード例 #1
0
ファイル: Pommo_Fields.php プロジェクト: soonick/poMMo
 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;
 }
コード例 #2
0
ファイル: Pommo_Mailing.php プロジェクト: soonick/poMMo
 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;
 }
コード例 #3
0
ファイル: Pommo_Subscribers.php プロジェクト: soonick/poMMo
 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;
 }
コード例 #4
0
ファイル: Pommo_Groups.php プロジェクト: soonick/poMMo
 static function &makeDB(&$row)
 {
     $in = @array('id' => $row['group_id'], 'name' => $row['group_name']);
     $o = Pommo_Type::group();
     return Pommo_Api::getParams($o, $in);
 }
コード例 #5
0
ファイル: Pommo_Pending.php プロジェクト: systemfirez/poMMo
 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);
 }
コード例 #6
0
 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;
 }
コード例 #7
0
ファイル: Pommo_Type.php プロジェクト: systemfirez/poMMo
 function &mailingCurrent()
 {
     $o = Pommo_Type::mailing();
     $o['touched'] = $o['current_id'] = $o['command'] = $o['serial'] = $o['code'] = $o['current_status'] = null;
     return $o;
 }