Changeset 21514 for branches/version-2_12-dev/data/class/SC_Product.php
- Timestamp:
- 2012/02/15 19:56:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Product.php
r21507 r21514 77 77 __EOS__; 78 78 $objQuery->setGroupBy('alldtl.product_id'); 79 if (is_array($this->arrOrderData) and $objQuery->order == "") {79 if (is_array($this->arrOrderData) and $objQuery->order == '') { 80 80 $o_col = $this->arrOrderData['col']; 81 81 $o_table = $this->arrOrderData['table']; … … 93 93 $objQuery->setOrder($order); 94 94 } 95 $results = $objQuery->select('alldtl.product_id', $table, "", $arrVal,95 $results = $objQuery->select('alldtl.product_id', $table, '', $arrVal, 96 96 MDB2_FETCHMODE_ORDERED); 97 97 $resultValues = array(); … … 209 209 function getDetail($productId) { 210 210 $objQuery =& SC_Query_Ex::getSingletonInstance(); 211 $result = $objQuery->select( "*", $this->alldtlSQL('product_id = ?'),212 "product_id = ?",211 $result = $objQuery->select('*', $this->alldtlSQL('product_id = ?'), 212 'product_id = ?', 213 213 array($productId, $productId)); 214 214 return $result[0]; … … 379 379 380 380 $objQuery->setOrder('T3.rank DESC'); // XXX 381 $arrRet = $objQuery->select($col, $table, "", $params);381 $arrRet = $objQuery->select($col, $table, '', $params); 382 382 383 383 return $arrRet; … … 519 519 $objQuery =& SC_Query_Ex::getSingletonInstance(); 520 520 $objQuery->update('dtb_products_class', array(), 521 "product_class_id = ?", array($productClassId),521 'product_class_id = ?', array($productClassId), 522 522 array('stock' => 'stock - ?'), array($quantity)); 523 523 // TODO エラーハンドリング … … 672 672 * @return string 商品規格詳細の SQL 673 673 */ 674 function prdclsSQL($where = "") {675 $where_clause = "";674 function prdclsSQL($where = '') { 675 $where_clause = ''; 676 676 if (!SC_Utils_Ex::isBlank($where)) { 677 $where_clause = " WHERE ". $where;677 $where_clause = ' WHERE ' . $where; 678 678 } 679 679 $sql = <<< __EOS__
Note: See TracChangeset
for help on using the changeset viewer.
