Changeset 21820 for branches/version-2_12-dev/data/class
- Timestamp:
- 2012/05/10 17:57:04 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_View.php
r21765 r21820 72 72 $this->_smarty->force_compile = false; 73 73 } 74 // 各filterをセットします. 75 $this->registFilter(); 74 76 } 75 77 … … 100 102 } 101 103 } 102 // 各filterをセットします.103 $this->registFilter();104 104 $res = $this->_smarty->fetch($template); 105 105 if (ADMIN_MODE == '1') { … … 136 136 */ 137 137 function prefilter_transform($source, &$smarty) { 138 // フックポイントを実行. 139 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 140 $objPlugin->doAction('prefilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 138 if (!is_null($this->objPage)) { 139 // フックポイントを実行. 140 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 141 $objPlugin->doAction('prefilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 142 } 141 143 return $source; 142 144 } … … 149 151 */ 150 152 function outputfilter_transform($source, &$smarty) { 151 // フックポイントを実行. 152 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 153 $objPlugin->doAction('outputfilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 153 if (!is_null($this->objPage)) { 154 // フックポイントを実行. 155 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->objPage->plugin_activate_flg); 156 $objPlugin->doAction('outputfilterTransform', array(&$source, $this->objPage, $smarty->_current_file)); 157 } 154 158 return $source; 155 159 } -
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']); -
branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r21743 r21820 206 206 // 登録メール再送 207 207 $objHelperMail = new SC_Helper_Mail_Ex(); 208 $objHelperMail->setPage($this); 208 209 $objHelperMail->sfSendRegistMail($arrData['secret_key'], $customer_id); 209 210 return true; -
branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
r21743 r21820 172 172 foreach ($order_id_array as $order_id){ 173 173 $objMail = new SC_Helper_Mail_Ex(); 174 $objMail->setPage($this); 174 175 $objSendMail = $objMail->sfSendOrderMail($order_id, 175 176 $objFormParam->getValue('template_id'), … … 194 195 // 注文受付メール(送信なし) 195 196 $objMail = new SC_Helper_Mail_Ex(); 197 $objMail->setPage($this); 196 198 $objSendMail = $objMail->sfSendOrderMail( 197 $objFormParam->getValue('order_id'),198 $objFormParam->getValue('template_id'),199 $objFormParam->getValue('subject'),200 $objFormParam->getValue('header'),201 $objFormParam->getValue('footer'), false);199 $objFormParam->getValue('order_id'), 200 $objFormParam->getValue('template_id'), 201 $objFormParam->getValue('subject'), 202 $objFormParam->getValue('header'), 203 $objFormParam->getValue('footer'), false); 202 204 203 205 $this->tpl_subject = $objFormParam->getValue('subject'); -
branches/version-2_12-dev/data/class/pages/contact/LC_Page_Contact.php
r21743 r21820 197 197 $objPage->tpl_infoemail = $CONF['email02']; 198 198 $helperMail = new SC_Helper_Mail_Ex(); 199 $helperMail->setPage($this); 199 200 $helperMail->sfSendTemplateMail( 200 201 $objPage->arrForm['email']['value'], // to -
branches/version-2_12-dev/data/class/pages/entry/LC_Page_Entry.php
r21743 r21820 236 236 237 237 $objMailText = new SC_SiteView_Ex(); 238 $objMailText->setPage($this); 238 239 $objMailText->assign('CONF', $CONF); 239 240 $objMailText->assign('name01', $arrForm['name01']); … … 243 244 244 245 $objHelperMail = new SC_Helper_Mail_Ex(); 246 $objHelperMail->setPage($this); 245 247 246 248 // 仮会員が有効の場合 -
branches/version-2_12-dev/data/class/pages/forgot/LC_Page_Forgot.php
r21743 r21820 285 285 // パスワード変更お知らせメール送信 286 286 $objMailText = new SC_SiteView_Ex(false); 287 $objMailText->setPage($this); 287 288 $objMailText->assign('customer_name', $customer_name); 288 289 $objMailText->assign('new_password', $new_password); 289 290 $toCustomerMail = $objMailText->fetch('mail_templates/forgot_mail.tpl'); 290 $objHelperMail = new SC_Helper_Mail_Ex(); 291 292 $objHelperMail = new SC_Helper_Mail_Ex(); 293 $objHelperMail->setPage($this); 294 291 295 // メール送信オブジェクトによる送信処理 292 296 $objMail = new SC_SendMail(); -
branches/version-2_12-dev/data/class/pages/regist/LC_Page_Regist.php
r21743 r21820 149 149 $objCustomer = new SC_Customer_Ex(); 150 150 $objHelperMail = new SC_Helper_Mail_Ex(); 151 $objHelperMail->setPage($this); 151 152 $CONF = SC_Helper_DB_Ex::sfGetBasisData(); 152 153 … … 158 159 //-- メール送信 159 160 $objMailText = new SC_SiteView_Ex(); 161 $objMailText->setPage($this); 160 162 $objMailText->assign('CONF', $CONF); 161 163 $objMailText->assign('name01', $data['name01']); -
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php
r21743 r21820 77 77 $objQuery =& SC_Query_Ex::getSingletonInstance(); 78 78 $objPurchase = new SC_Helper_Purchase_Ex(); 79 79 $objHelperMail = new SC_Helper_Mail(); 80 $objHelperMail->setPage($this); 81 80 82 $this->is_multiple = $objPurchase->isMultiple(); 81 83 … … 164 166 else { 165 167 $objPurchase->completeOrder(ORDER_NEW); 166 $objPurchase->sendOrderMail($this->arrForm['order_id']); 167 168 $template_id = SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE ? 2 : 1; 169 $objHelperMail->sfSendOrderMail( 170 $this->arrForm['order_id'], 171 $template_id); 168 172 169 173 SC_Response_Ex::sendRedirect(SHOPPING_COMPLETE_URLPATH);
Note: See TracChangeset
for help on using the changeset viewer.