Ignore:
Timestamp:
2012/02/15 19:56:17 (14 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

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

    r21507 r21514  
    7777__EOS__; 
    7878        $objQuery->setGroupBy('alldtl.product_id'); 
    79         if (is_array($this->arrOrderData) and $objQuery->order == "") { 
     79        if (is_array($this->arrOrderData) and $objQuery->order == '') { 
    8080            $o_col = $this->arrOrderData['col']; 
    8181            $o_table = $this->arrOrderData['table']; 
     
    9393            $objQuery->setOrder($order); 
    9494        } 
    95         $results = $objQuery->select('alldtl.product_id', $table, "", $arrVal, 
     95        $results = $objQuery->select('alldtl.product_id', $table, '', $arrVal, 
    9696                                     MDB2_FETCHMODE_ORDERED); 
    9797        $resultValues = array(); 
     
    209209    function getDetail($productId) { 
    210210        $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 = ?', 
    213213                                    array($productId, $productId)); 
    214214        return $result[0]; 
     
    379379 
    380380        $objQuery->setOrder('T3.rank DESC'); // XXX 
    381         $arrRet = $objQuery->select($col, $table, "", $params); 
     381        $arrRet = $objQuery->select($col, $table, '', $params); 
    382382 
    383383        return $arrRet; 
     
    519519        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    520520        $objQuery->update('dtb_products_class', array(), 
    521                           "product_class_id = ?", array($productClassId), 
     521                          'product_class_id = ?', array($productClassId), 
    522522                          array('stock' => 'stock - ?'), array($quantity)); 
    523523        // TODO エラーハンドリング 
     
    672672     * @return string 商品規格詳細の SQL 
    673673     */ 
    674     function prdclsSQL($where = "") { 
    675         $where_clause = ""; 
     674    function prdclsSQL($where = '') { 
     675        $where_clause = ''; 
    676676        if (!SC_Utils_Ex::isBlank($where)) { 
    677             $where_clause = " WHERE " . $where; 
     677            $where_clause = ' WHERE ' . $where; 
    678678        } 
    679679        $sql = <<< __EOS__ 
Note: See TracChangeset for help on using the changeset viewer.