Changeset 19749


Ignore:
Timestamp:
2010/12/19 14:29:22 (13 years ago)
Author:
Seasoft
Message:

#858(SC_Helper_Mail#sfSendOrderMail LC_Page を使用しないように改訂)

File:
1 edited

Legend:

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

    r18820 r19749  
    7979    function sfSendOrderMail($order_id, $template_id, $subject = "", $header = "", $footer = "", $send = true) { 
    8080 
    81         $objPage = new LC_Page(); 
    82         $objSiteInfo = new SC_SiteInfo(); 
    83         $arrInfo = $objSiteInfo->data; 
    84         $objPage->arrInfo = $arrInfo; 
     81        $arrTplVar = new stdClass(); 
     82        $objSiteInfo = new SC_SiteInfo(); 
     83        $arrInfo = $objSiteInfo->data; 
     84        $arrTplVar->arrInfo = $arrInfo; 
    8585 
    8686        $objQuery = new SC_Query(); 
     
    9090            $where = "template_id = ?"; 
    9191            $arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($template_id)); 
    92             $objPage->tpl_header = $arrRet[0]['header']; 
    93             $objPage->tpl_footer = $arrRet[0]['footer']; 
     92            $arrTplVar->tpl_header = $arrRet[0]['header']; 
     93            $arrTplVar->tpl_footer = $arrRet[0]['footer']; 
    9494            $tmp_subject = $arrRet[0]['subject']; 
    9595        } else { 
    96             $objPage->tpl_header = $header; 
    97             $objPage->tpl_footer = $footer; 
     96            $arrTplVar->tpl_header = $header; 
     97            $arrTplVar->tpl_footer = $footer; 
    9898            $tmp_subject = $subject; 
    9999        } 
     
    105105        $arrOrderDetail = $objQuery->select("*", "dtb_order_detail", $where, array($order_id)); 
    106106 
    107         $objPage->Message_tmp = $arrOrder['message']; 
     107        $arrTplVar->Message_tmp = $arrOrder['message']; 
    108108 
    109109        // 顧客情報の取得 
     
    112112        $arrCustomer = isset($arrRet[0]) ? $arrRet[0] : ""; 
    113113 
    114         $objPage->arrCustomer = $arrCustomer; 
    115         $objPage->arrOrder = $arrOrder; 
     114        $arrTplVar->arrCustomer = $arrCustomer; 
     115        $arrTplVar->arrOrder = $arrOrder; 
    116116 
    117117        //その他決済情報 
     
    125125            } 
    126126 
    127             $objPage->arrOther = $arrOther; 
     127            $arrTplVar->arrOther = $arrOther; 
    128128        } 
    129129 
    130130        // 都道府県変換 
    131         $objPage->arrOrder['deliv_pref'] = $this->arrPref[$objPage->arrOrder['deliv_pref']]; 
    132  
    133         $objPage->arrOrderDetail = $arrOrderDetail; 
     131        $arrTplVar->arrOrder['deliv_pref'] = $this->arrPref[$arrTplVar->arrOrder['deliv_pref']]; 
     132 
     133        $arrTplVar->arrOrderDetail = $arrOrderDetail; 
    134134 
    135135        $objCustomer = new SC_Customer(); 
    136         $objPage->tpl_user_point = $objCustomer->getValue('point'); 
     136        $arrTplVar->tpl_user_point = $objCustomer->getValue('point'); 
    137137 
    138138        $objMailView = new SC_SiteView(); 
    139139        // メール本文の取得 
    140         $objMailView->assignobj($objPage); 
     140        $objMailView->assignobj($arrTplVar); 
    141141        $body = $objMailView->fetch($this->arrMAILTPLPATH[$template_id]); 
    142142 
Note: See TracChangeset for help on using the changeset viewer.