Ignore:
Timestamp:
2012/11/05 18:30:06 (11 years ago)
Author:
pineray
Message:

#1960 (page クラスからビジネスロジックを分離)

LC_Page_Shopping から SC_Query を使用するロジックを分離.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r22063 r22074  
    153153                else { 
    154154                    // 仮登録の場合 
    155                     if ($this->checkTempCustomer($objFormParam->getValue('login_email'))) { 
     155                    if (SC_Helper_Customer_Ex::checkTempCustomer($objFormParam->getValue('login_email'))) { 
    156156                        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    157157                            echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 
     
    488488 
    489489    /** 
    490      * 仮会員かどうかを判定する. 
    491      * 
    492      * @param string $login_email メールアドレス 
    493      * @return boolean 仮会員の場合 true 
    494      */ 
    495     function checkTempCustomer($login_email) { 
    496         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    497         $where = 'email = ? AND status = 1 AND del_flg = 0'; 
    498         $exists = $objQuery->exists('dtb_customer', $where, array($login_email)); 
    499         return $exists; 
    500     } 
    501  
    502     /** 
    503490     * エラーメッセージを JSON 形式で返す. 
    504491     * 
Note: See TracChangeset for help on using the changeset viewer.