Ignore:
Timestamp:
2012/05/10 17:57:04 (14 years ago)
Author:
adachi
Message:

#1797 #1798 メールテンプレートでfilterが動作するように修正

File:
1 edited

Legend:

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

    r21767 r21820  
    3535 
    3636    /** 
     37     * LC_Pageオブジェクト. 
     38     *  
     39     * @var LC_Page 
     40     */ 
     41    protected $objPage; 
     42 
     43    /** 
    3744     * コンストラクタ. 
    3845     */ 
     
    4350    } 
    4451 
     52    /** 
     53     * LC_Pageオブジェクトをセットします. 
     54     *  
     55     * @param LC_Page $objPage 
     56     */ 
     57    function setPage(LC_Page $objPage) { 
     58        $this->objPage = $objPage; 
     59    } 
     60 
     61    /** 
     62     * LC_Pageオブジェクトを返します. 
     63     *  
     64     * @return LC_Page 
     65     */ 
     66    function getPage() { 
     67        return $this->objPage; 
     68    } 
     69     
    4570    /* DBに登録されたテンプレートメールの送信 */ 
    4671    function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = '', $from_name = '', $reply_to = '', $bcc = '') { 
     
    5782 
    5883        $objMailView = new SC_SiteView_Ex(); 
     84        $objMailView->setPage($this->getPage()); 
    5985        // メール本文の取得 
    6086        $objMailView->assignobj($objPage); 
     
    150176        $arrTplVar->tpl_user_point = $objCustomer->getValue('point'); 
    151177 
     178        $objMailView = null; 
    152179        if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 
    153180            $objMailView = new SC_MobileView_Ex(); 
     
    156183        } 
    157184        // メール本文の取得 
     185        $objMailView->setPage($this->getPage()); 
    158186        $objMailView->assignobj($arrTplVar); 
    159187        $body = $objMailView->fetch($this->arrMAILTPLPATH[$template_id]); 
     
    182210    function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) { 
    183211        $objMailView = new SC_SiteView_Ex(); 
     212        $objMailView->setPage($this->getPage()); 
    184213        $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    185214        // メール本文の取得 
     
    217246        if (empty($objMailView)) { 
    218247            $objMailView = new SC_SiteView_Ex(); 
     248            $objMailView->setPage($this->getPage()); 
    219249        } 
    220250        $objTplAssign = new stdClass; 
     
    284314 
    285315        $objMailText = new SC_SiteView_Ex(); 
     316        $objMailText->setPage($this->getPage()); 
    286317        $objMailText->assign('CONF', $CONF); 
    287318        $objMailText->assign('name01', $arrCustomerData['name01']); 
Note: See TracChangeset for help on using the changeset viewer.