Pommo_Type::mailingCurrent PHP Method

mailingCurrent() public static method

public static mailingCurrent ( )
    public static function &mailingCurrent()
    {
        $o = Pommo_Type::mailing();
        $o['touched'] = $o['current_id'] = $o['command'] = $o['serial'] = $o['code'] = $o['current_status'] = null;
        return $o;
    }

Usage Example

コード例 #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;
 }