Ignore:
Timestamp:
2011/02/04 14:37:24 (15 years ago)
Author:
kimoto
Message:

仮会員登録処理リファクタリング #985

File:
1 edited

Legend:

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

    r20088 r20089  
    149149 
    150150                // 完了ページに移動させる。 
    151                 SC_Response_Ex::sendRedirect('complete.php', array("ci" => $this->lfGetCustomerId($uniqid))); 
     151                SC_Response_Ex::sendRedirect('complete.php', array("ci" => SC_Helper_Customer_Ex::sfGetCustomerId($uniqid))); 
    152152            } 
    153153            break; 
     
    267267        $this->name02   = $arrRet['name02']; 
    268268        $this->uniqid   = $uniqid; 
     269        $CONF           = SC_Helper_DB_Ex::sfGetBasisData(); 
     270        $this->CONF     = $CONF; 
    269271        $objMailText    = new SC_SiteView(); 
    270272        $objMailText->assignobj($this); 
    271273 
    272274        $objHelperMail  = new SC_Helper_Mail_Ex(); 
    273         $objCustomer    = new SC_Customer(); 
    274         $CONF           = SC_Helper_DB_Ex::sfGetBasisData(); 
    275         $this->CONF     = $CONF; 
    276275 
    277276        // 仮会員が有効の場合 
     
    283282            $toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl"); 
    284283            // ログイン状態にする 
     284            $objCustomer = new SC_Customer(); 
    285285            $objCustomer->setLogin($arrRet["email"]); 
    286286        } 
     
    367367        } 
    368368    } 
    369  
    370  
    371     /** 
    372      * lfGetCustomerId 
    373      * 
    374      * @param mixed $uniqid 
    375      * @access public 
    376      * @return void 
    377      */ 
    378     function lfGetCustomerId($uniqid) { 
    379         $objQuery = new SC_Query(); 
    380         return $objQuery->get("customer_id", "dtb_customer", "secret_key = ?", array($uniqid)); 
    381     } 
    382369} 
Note: See TracChangeset for help on using the changeset viewer.