Ignore:
Timestamp:
2011/02/19 19:48:25 (16 years ago)
Author:
fukuda
Message:

・/admin/mail/preview.php のリファクタリング
・使用していないmail_method=3に関するコードを削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_Mail.php

    r20203 r20205  
    355355        return $arrResults; 
    356356    } 
     357     
     358    /** 
     359     * 保存されている送信履歴の取得 
     360     * @param integer 特定の送信履歴を取り出したい時はsend_idを指定。未指定時は全件取得 
     361     * @return array 送信履歴情報を格納した配列 
     362     */ 
     363    function sfGetSendHistory($send_id = null){ 
     364        // 初期化 
     365        $where = ''; 
     366        $objQuery =& SC_Query::getSingletonInstance(); 
     367         
     368        // 条件文 
     369        $where = 'del_flg = ?'; 
     370        $arrValues[] = 0; 
     371         
     372        //send_id指定時 
     373        if (SC_Utils_Ex::sfIsInt($send_id) === true) { 
     374            $where .= 'AND send_id = ?'; 
     375            $arrValues[] = $send_id; 
     376        } 
     377         
     378        // 表示順 
     379        $objQuery->setOrder("create_date DESC"); 
     380         
     381        $arrResults = $objQuery->select('*', 'dtb_send_history', $where, $arrValues); 
     382        return $arrResults; 
     383    } 
    357384} 
    358385?> 
Note: See TracChangeset for help on using the changeset viewer.