- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_Mail.php
r22206 r22567 29 29 * @version $Id$ 30 30 */ 31 class SC_Helper_Mail { 31 class SC_Helper_Mail 32 { 32 33 33 34 /** メールテンプレートのパス */ … … 44 45 * コンストラクタ. 45 46 */ 46 function __construct() { 47 function __construct() 48 { 47 49 $masterData = new SC_DB_MasterData_Ex(); 48 50 $this->arrMAILTPLPATH = $masterData->getMasterData('mtb_mail_tpl_path'); … … 55 57 * @param LC_Page $objPage 56 58 */ 57 function setPage(LC_Page $objPage) { 59 function setPage(LC_Page $objPage) 60 { 58 61 $this->objPage = $objPage; 59 62 } … … 64 67 * @return LC_Page 65 68 */ 66 function getPage() { 69 function getPage() 70 { 67 71 return $this->objPage; 68 72 } 69 73 70 74 /* 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 { 72 77 73 78 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 101 106 102 107 /* 受注完了メール送信 */ 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 { 104 110 105 111 $arrTplVar = new stdClass(); … … 213 219 214 220 // テンプレートを使用したメールの送信 215 function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) { 221 function sfSendTplMail($to, $tmp_subject, $tplpath, &$objPage) 222 { 216 223 $objMailView = new SC_SiteView_Ex(); 217 224 $objMailView->setPage($this->getPage()); … … 234 241 235 242 // 通常のメール送信 236 function sfSendMail($to, $tmp_subject, $body) { 243 function sfSendMail($to, $tmp_subject, $body) 244 { 237 245 $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 238 246 // メール送信処理 … … 248 256 249 257 //件名にテンプレートを用いる 250 function sfMakeSubject($subject, &$objMailView) { 258 function sfMakeSubject($subject, &$objMailView) 259 { 251 260 if (empty($objMailView)) { 252 261 $objMailView = new SC_SiteView_Ex(); … … 267 276 268 277 // メール配信履歴への登録 269 function sfSaveMailHistory($order_id, $template_id, $subject, $body) { 278 function sfSaveMailHistory($order_id, $template_id, $subject, $body) 279 { 270 280 $sqlval = array(); 271 281 $sqlval['subject'] = $subject; … … 287 297 288 298 /* 会員登録があるかどうかのチェック(仮会員を含まない) */ 289 function sfCheckCustomerMailMaga($email) { 299 function sfCheckCustomerMailMaga($email) 300 { 290 301 $col = 'email, mailmaga_flg, customer_id'; 291 302 $from = 'dtb_customer'; … … 308 319 * @return boolean true:成功 false:失敗 309 320 */ 310 function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) { 321 function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) 322 { 311 323 // 会員データの取得 312 324 if (SC_Utils_Ex::sfIsInt($customer_id)) { … … 371 383 * @todo 表示順も引数で変更できるように 372 384 */ 373 function sfGetMailmagaTemplate($template_id = null) { 385 function sfGetMailmagaTemplate($template_id = null) 386 { 374 387 // 初期化 375 388 $where = ''; … … 397 410 * @return array 送信履歴情報を格納した配列 398 411 */ 399 function sfGetSendHistory($send_id = null) { 412 function sfGetSendHistory($send_id = null) 413 { 400 414 // 初期化 401 415 $where = ''; … … 425 439 * @return void 426 440 */ 427 function sfSendMailmagazine($send_id) { 441 function sfSendMailmagazine($send_id) 442 { 428 443 $objQuery =& SC_Query_Ex::getSingletonInstance(); 429 444 $objDb = new SC_Helper_DB_Ex();
Note: See TracChangeset
for help on using the changeset viewer.