Ignore:
Timestamp:
2011/03/07 15:23:39 (13 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)
#628(未使用処理・定義などの削除)

File:
1 edited

Legend:

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

    r20507 r20538  
    125125        $customer_id = $arrOrder['customer_id']; 
    126126        $objQuery->setOrder('customer_id'); 
    127         $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id)); 
     127        $arrRet = $objQuery->select('point', "dtb_customer", "customer_id = ?", array($customer_id)); 
    128128        $arrCustomer = isset($arrRet[0]) ? $arrRet[0] : ""; 
    129129 
     
    136136 
    137137            foreach($arrOther as $other_key => $other_val){ 
    138                 if(SC_Utils_Ex::sfTrim($other_val["value"]) == ""){ 
    139                     $arrOther[$other_key]["value"] = ""; 
     138                if(SC_Utils_Ex::sfTrim($other_val['value']) == ""){ 
     139                    $arrOther[$other_key]['value'] = ""; 
    140140                } 
    141141            } 
     
    285285         
    286286        $objMailText = new SC_SiteView_Ex(); 
    287         $objMailText->assign("CONF", $CONF); 
     287        $objMailText->assign('CONF', $CONF); 
    288288        $objMailText->assign("name01", $arrCustomerData['name01']); 
    289289        $objMailText->assign("name02", $arrCustomerData['name02']); 
    290         $objMailText->assign("uniqid", $arrCustomerData['secret_key']); 
     290        $objMailText->assign('uniqid', $arrCustomerData['secret_key']); 
    291291        $objMailText->assignobj($arrCustomerData); 
    292292        $objMailText->assignobj($this); 
     
    319319            $to_addr = $arrCustomerData["email_mobile"]; 
    320320        }else{ 
    321             $to_addr = $arrCustomerData["email"]; 
     321            $to_addr = $arrCustomerData['email']; 
    322322        } 
    323323        $objMail->setTo($to_addr, $arrCustomerData["name01"] . $arrCustomerData["name02"] ." 様"); 
     
    414414 
    415415            // 顧客名の変換 
    416             $customerName = trim($arrDestination["name"]); 
    417             $subjectBody = preg_replace("/{name}/", $customerName, $arrMail["subject"]); 
    418             $mailBody = preg_replace("/{name}/", $customerName, $arrMail["body"]); 
     416            $customerName = trim($arrDestination['name']); 
     417            $subjectBody = preg_replace("/{name}/", $customerName, $arrMail['subject']); 
     418            $mailBody = preg_replace("/{name}/", $customerName, $arrMail['body']); 
    419419 
    420420            $objMail->setItem( 
    421                 $arrDestination["email"], 
     421                $arrDestination['email'], 
    422422                $subjectBody, 
    423423                $mailBody, 
Note: See TracChangeset for help on using the changeset viewer.