mailing() public static method

==Additional Columns for Current Mailing== current_id (int) ID of current mailing (from mailing_id) command (enum) 'none' (default), 'restart', 'stop' serial (int) Serial of this mailing securityCode (char[32]) Security Code of Mailing notices (str) Mailing Messages current_status (enum) 'started', 'stopped' (default)
public static mailing ( )
コード例 #1
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;
 }
コード例 #2
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;
 }