Changeset 21820 for branches/version-2_12-dev/data/class/helper
- Timestamp:
- 2012/05/10 17:57:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_Mail.php
r21767 r21820 35 35 36 36 /** 37 * LC_Pageオブジェクト. 38 * 39 * @var LC_Page 40 */ 41 protected $objPage; 42 43 /** 37 44 * コンストラクタ. 38 45 */ … … 43 50 } 44 51 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 45 70 /* DBに登録されたテンプレートメールの送信 */ 46 71 function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = '', $from_name = '', $reply_to = '', $bcc = '') { … … 57 82 58 83 $objMailView = new SC_SiteView_Ex(); 84 $objMailView->setPage($this->getPage()); 59 85 // メール本文の取得 60 86 $objMailView->assignobj($objPage); … … 150 176 $arrTplVar->tpl_user_point = $objCustomer->getValue('point'); 151 177 178 $objMailView = null; 152 179 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 153 180 $objMailView = new SC_MobileView_Ex(); … … 156 183 } 157 184 // メール本文の取得 185 $objMailView->setPage($this->getPage()); 158 186 $objMailView->assignobj($arrTplVar); 159 187 $body = $objMailView->fetch($this->arrMAILTPLPATH[$template_id]); … … 182 210 function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) { 183 211 $objMailView = new SC_SiteView_Ex(); 212 $objMailView->setPage($this->getPage()); 184 213 $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 185 214 // メール本文の取得 … … 217 246 if (empty($objMailView)) { 218 247 $objMailView = new SC_SiteView_Ex(); 248 $objMailView->setPage($this->getPage()); 219 249 } 220 250 $objTplAssign = new stdClass; … … 284 314 285 315 $objMailText = new SC_SiteView_Ex(); 316 $objMailText->setPage($this->getPage()); 286 317 $objMailText->assign('CONF', $CONF); 287 318 $objMailText->assign('name01', $arrCustomerData['name01']);
Note: See TracChangeset
for help on using the changeset viewer.
