Ignore:
Timestamp:
2012/03/01 10:06:28 (12 years ago)
Author:
Seasoft
Message:

#1670 (「文字列を区切り文字を挟み反復する」ユーティリティ関数を追加)
#1613 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Product.php

    r21527 r21564  
    173173        } 
    174174 
    175         $where = 'alldtl.product_id IN (' . implode(',', array_fill(0, count($arrProductId), '?')) . ')'; 
     175        $where = 'alldtl.product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($arrProductId)) . ')'; 
    176176        $where .= ' AND alldtl.del_flg = 0'; 
    177177 
     
    410410        } 
    411411        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    412         $where = 'product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')'; 
     412        $where = 'product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($productIds)) . ')'; 
    413413        if (!$has_deleted) { 
    414414            $where .= ' AND T1.del_flg = 0'; 
     
    443443        $cols = 'product_id, product_status_id'; 
    444444        $from = 'dtb_product_status'; 
    445         $where = 'del_flg = 0 AND product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')'; 
     445        $where = 'del_flg = 0 AND product_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($productIds)) . ')'; 
    446446        $productStatus = $objQuery->select($cols, $from, $where, $productIds); 
    447447        $results = array(); 
Note: See TracChangeset for help on using the changeset viewer.