- Timestamp:
- 2011/02/04 14:37:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_Customer.php
r20085 r20089 222 222 */ 223 223 function sfGetUniqSecretKey() { 224 $objQuery = new SC_Query();224 $objQuery =& SC_Query::getSingletonInstance(); 225 225 $count = 1; 226 226 while ($count != 0) { … … 230 230 return $uniqid; 231 231 } 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 232 253 }
Note: See TracChangeset
for help on using the changeset viewer.
