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/helper/SC_Helper_Customer.php

    r20085 r20089  
    222222     */ 
    223223    function sfGetUniqSecretKey() { 
    224         $objQuery   = new SC_Query(); 
     224        $objQuery   =& SC_Query::getSingletonInstance(); 
    225225        $count      = 1; 
    226226        while ($count != 0) { 
     
    230230        return $uniqid; 
    231231    } 
     232 
     233 
     234    /** 
     235     * sfGetCustomerId 
     236     * 
     237     * @param mixed $uniqid 
     238     * @param mixed $check_status 
     239     * @access public 
     240     * @return void 
     241     */ 
     242    function sfGetCustomerId($uniqid, $check_status = false) { 
     243        $objQuery   =& SC_Query::getSingletonInstance(); 
     244        $where      = "secret_key = ?"; 
     245 
     246        if ($check_status) { 
     247            $where .= ' AND status = 1 AND del_flg = 0'; 
     248        } 
     249 
     250        return $objQuery->get("customer_id", "dtb_customer", $where, array($uniqid)); 
     251    } 
     252 
    232253} 
Note: See TracChangeset for help on using the changeset viewer.