Changeset 15578


Ignore:
Timestamp:
2007/09/04 12:06:54 (17 years ago)
Author:
nanasess
Message:

リファクタリング

  • DB インスタンスを生成する関数の移動
Location:
branches/feature-module-update/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_DB.php

    r15567 r15578  
    248248        $arrRet = $objQuery->select($col, $table, $where, array($product_id, $classcategory_id1, $classcategory_id2)); 
    249249        return $arrRet[0]; 
     250    } 
     251 
     252    /** 
     253     * 支払い方法を取得する. 
     254     * 
     255     * @return void 
     256     */ 
     257    function sfGetPayment() { 
     258        $objQuery = new SC_Query(); 
     259        // 購入金額が条件額以下の項目を取得 
     260        $where = "del_flg = 0"; 
     261        $objQuery->setorder("fix, rank DESC"); 
     262        $arrRet = $objQuery->select("payment_id, payment_method, rule", "dtb_payment", $where); 
     263        return $arrRet; 
    250264    } 
    251265 
  • branches/feature-module-update/data/class/util/SC_Utils.php

    r15567 r15578  
    10561056    } 
    10571057 
    1058     /* 支払い方法の取得 */ 
    1059     function sfGetPayment() { 
    1060         $objQuery = new SC_Query(); 
    1061         // 購入金額が条件額以下の項目を取得 
    1062         $where = "del_flg = 0"; 
    1063         $objQuery->setorder("fix, rank DESC"); 
    1064         $arrRet = $objQuery->select("payment_id, payment_method, rule", "dtb_payment", $where); 
    1065         return $arrRet; 
    1066     } 
    1067  
    10681058    /* 配列をキー名ごとの配列に変更する */ 
    10691059    function sfSwapArray($array) { 
Note: See TracChangeset for help on using the changeset viewer.