Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    2929 * @version $Id$ 
    3030 */ 
    31 class SC_Helper_Mail { 
     31class SC_Helper_Mail  
     32{ 
    3233 
    3334    /** メールテンプレートのパス */ 
     
    4445     * コンストラクタ. 
    4546     */ 
    46     function __construct() { 
     47    function __construct() 
     48    { 
    4749        $masterData = new SC_DB_MasterData_Ex(); 
    4850        $this->arrMAILTPLPATH =  $masterData->getMasterData('mtb_mail_tpl_path'); 
     
    5557     * @param LC_Page $objPage 
    5658     */ 
    57     function setPage(LC_Page $objPage) { 
     59    function setPage(LC_Page $objPage) 
     60    { 
    5861        $this->objPage = $objPage; 
    5962    } 
     
    6467     * @return LC_Page 
    6568     */ 
    66     function getPage() { 
     69    function getPage() 
     70    { 
    6771        return $this->objPage; 
    6872    } 
    6973 
    7074    /* DBに登録されたテンプレートメールの送信 */ 
    71     function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = '', $from_name = '', $reply_to = '', $bcc = '') { 
     75    function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = '', $from_name = '', $reply_to = '', $bcc = '') 
     76    { 
    7277 
    7378        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    101106 
    102107    /* 受注完了メール送信 */ 
    103     function sfSendOrderMail($order_id, $template_id, $subject = '', $header = '', $footer = '', $send = true) { 
     108    function sfSendOrderMail($order_id, $template_id, $subject = '', $header = '', $footer = '', $send = true) 
     109    { 
    104110 
    105111        $arrTplVar = new stdClass(); 
     
    213219 
    214220    // テンプレートを使用したメールの送信 
    215     function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) { 
     221    function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) 
     222    { 
    216223        $objMailView = new SC_SiteView_Ex(); 
    217224        $objMailView->setPage($this->getPage()); 
     
    234241 
    235242    // 通常のメール送信 
    236     function sfSendMail($to, $tmp_subject, $body) { 
     243    function sfSendMail($to, $tmp_subject, $body) 
     244    { 
    237245        $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    238246        // メール送信処理 
     
    248256 
    249257    //件名にテンプレートを用いる 
    250     function sfMakeSubject($subject, &$objMailView) { 
     258    function sfMakeSubject($subject, &$objMailView) 
     259    { 
    251260        if (empty($objMailView)) { 
    252261            $objMailView = new SC_SiteView_Ex(); 
     
    267276 
    268277    // メール配信履歴への登録 
    269     function sfSaveMailHistory($order_id, $template_id, $subject, $body) { 
     278    function sfSaveMailHistory($order_id, $template_id, $subject, $body) 
     279    { 
    270280        $sqlval = array(); 
    271281        $sqlval['subject'] = $subject; 
     
    287297 
    288298    /* 会員登録があるかどうかのチェック(仮会員を含まない) */ 
    289     function sfCheckCustomerMailMaga($email) { 
     299    function sfCheckCustomerMailMaga($email) 
     300    { 
    290301        $col = 'email, mailmaga_flg, customer_id'; 
    291302        $from = 'dtb_customer'; 
     
    308319     * @return boolean true:成功 false:失敗 
    309320     */ 
    310     function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) { 
     321    function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) 
     322    { 
    311323        // 会員データの取得 
    312324        if (SC_Utils_Ex::sfIsInt($customer_id)) { 
     
    371383     * @todo   表示順も引数で変更できるように 
    372384     */ 
    373     function sfGetMailmagaTemplate($template_id = null) { 
     385    function sfGetMailmagaTemplate($template_id = null) 
     386    { 
    374387        // 初期化 
    375388        $where = ''; 
     
    397410     * @return array 送信履歴情報を格納した配列 
    398411     */ 
    399     function sfGetSendHistory($send_id = null) { 
     412    function sfGetSendHistory($send_id = null) 
     413    { 
    400414        // 初期化 
    401415        $where = ''; 
     
    425439     * @return void 
    426440     */ 
    427     function sfSendMailmagazine($send_id) { 
     441    function sfSendMailmagazine($send_id) 
     442    { 
    428443        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    429444        $objDb = new SC_Helper_DB_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.