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

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

File:
1 edited

Legend:

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

    r21563 r21564  
    853853        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    854854 
    855         $where = "$pid_name IN (" . implode(',', array_fill(0, count($arrPID), '?')) . ")"; 
     855        $where = "$pid_name IN (" . SC_Utils_Ex::repeatStrWithSeparator('?', count($arrPID)) . ')'; 
    856856 
    857857        $return = $objQuery->getCol($id_name, $table, $where, $arrPID); 
     
    921921        $arrRet = SC_Helper_DB_Ex::sfGetChildrenArray('dtb_category', 'parent_category_id', 'category_id', $category_id); 
    922922 
    923         $where = 'category_id IN (' . implode(',', array_fill(0, count($arrRet), '?')) . ')'; 
     923        $where = 'category_id IN (' . SC_Utils_Ex::repeatStrWithSeparator('?', count($arrRet)) . ')'; 
    924924 
    925925        return array($where, $arrRet); 
Note: See TracChangeset for help on using the changeset viewer.