- Timestamp:
- 2014/07/11 00:40:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/helper/SC_Helper_BestProducts.php
r23568 r23569 141 141 public function deleteBestProducts($best_id) 142 142 { 143 $objDb = new SC_Helper_DB_Ex(); 144 // ランク付きレコードの削除 145 $objDb->sfDeleteRankRecord('dtb_best_products', 'best_id', $best_id, '', TRUE); 143 $objQuery =& SC_Query_Ex::getSingletonInstance(); 144 145 $table = 'dtb_best_products'; 146 $arrVal = array('del_flg' => 1); 147 $where = 'best_id = ?'; 148 $arrWhereVal = array($best_id); 149 $objQuery->update($table, $arrVal, $where, $arrWhereVal); 146 150 } 147 151 … … 158 162 foreach ($arrList as $recommend) { 159 163 if (in_array($recommend['product_id'], $productIDs)) { 160 $ objDb->sfDeleteRankRecord('dtb_best_products', 'best_id', $recommend['best_id'], '', TRUE);164 $this->deleteBestProducts($recommend['best_id']); 161 165 } 162 166 }
Note: See TracChangeset
for help on using the changeset viewer.