Ignore:
Timestamp:
2011/02/07 11:54:44 (13 years ago)
Author:
kimoto
Message:

リファクタリング #979

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php

    r20090 r20106  
    9595 
    9696    /** 
    97      * lfRegistData 
    98      * 
    9997     * 仮会員を本会員にUpdateする 
    10098     * 
    10199     * @param mixed $array 
    102      * @access public 
    103      * @return void 
     100     * @access private 
     101     * @return string $arrRegist["secret_key"] 本登録ID 
    104102     */ 
    105103    function lfRegistData($array) { 
    106         $objQuery = new SC_Query(); 
    107  
    108         $arrRegist["secret_key"]    = SC_Helper_Customer_Ex::sfGetUniqSecretKey(); // 本登録ID発行 
     104        $objQuery                   = SC_Query::getSingletonInstance(); 
     105        $arrRegist["secret_key"]    = SC_Helper_Customer_Ex::sfGetUniqSecretKey(); //本登録ID発行 
    109106        $arrRegist["status"]        = 2; 
    110107        $arrRegist["update_date"]   = "NOW()"; 
     
    114111        $objQuery->commit(); 
    115112 
    116         return $arrRegist["secret_key"];        // 本登録IDを返す 
     113        return $arrRegist["secret_key"]; 
    117114    } 
    118115 
    119116    /** 
    120      * lfErrorCheck 
    121      * 
    122117     * 入力エラーチェック 
    123118     * 
    124119     * @param mixed $array 
    125      * @access public 
    126      * @return void 
     120     * @access private 
     121     * @return array エラーの配列 
    127122     */ 
    128123    function lfErrorCheck($array) { 
     
    142137 
    143138    /** 
    144      * lfSendRegistMail 
    145      * 
    146139     * 正会員登録完了メール送信 
    147140     * 
    148141     * @param mixed $registSecretKey 
    149      * @access public 
     142     * @access private 
    150143     * @return void 
    151144     */ 
    152145    function lfSendRegistMail($registSecretKey) { 
     146        $objQuery       = SC_Query::getSingletonInstance(); 
    153147        $objCustomer    = new SC_Customer(); 
    154         $objQuery       = new SC_Query(); 
    155148        $objHelperMail  = new SC_Helper_Mail_Ex(); 
    156         $this->CONF     = SC_Helper_DB_Ex::sfGetBasisData(); 
     149        $CONF           = SC_Helper_DB_Ex::sfGetBasisData(); 
    157150 
    158151        //-- 会員データを取得 
    159         $result         = $objQuery->select("*", "dtb_customer", "secret_key = ?", array($registSecretKey)); 
    160         $data           = $result[0]; 
     152        $arrCustomer    = $objQuery->select("*", "dtb_customer", "secret_key = ?", array($registSecretKey)); 
     153        $data           = $arrCustomer[0]; 
    161154        $objCustomer->setLogin($data['email']); 
    162155 
    163156        //-- メール送信 
    164157        $objMailText    = new SC_SiteView(); 
    165         $objMailText->assign("CONF", $this->CONF); 
     158        $objMailText->assign("CONF", $CONF); 
    166159        $objMailText->assign("name01", $data["name01"]); 
    167160        $objMailText->assign("name02", $data["name02"]); 
Note: See TracChangeset for help on using the changeset viewer.