Ignore:
Timestamp:
2010/12/16 23:18:05 (16 years ago)
Author:
Seasoft
Message:

#855(SC_Query の #select, #getRow, #getCol, #get, #min, #max の引数順を統一する)

  • SC_Query#getCol を改訂
Location:
branches/version-2_5-dev/data/class/helper
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_CSV.php

    r19670 r19730  
    170170            // カテゴリID 
    171171            if (in_array('category_id', $arrOutputCols)) { 
    172                 $row['category_id'] = $objQuery->getCol("dtb_product_categories", 
    173                                   "category_id", 
    174                                   "product_id = ?", 
    175                                   array($row['product_id'])); 
     172                $row['category_id'] = $objQuery->getCol( 
     173                    "category_id", 
     174                    "dtb_product_categories", 
     175                    "product_id = ?", 
     176                    array($row['product_id']) 
     177                ); 
    176178            } 
    177179 
  • branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php

    r19729 r19730  
    799799                $objQuery =& SC_Query::getSingletonInstance(); 
    800800                $where = "product_id = ?"; 
    801                 $category_id = $objQuery->getCol("dtb_product_categories", "category_id", "product_id = ?", array($product_id)); 
     801                $category_id = $objQuery->getCol("category_id", "dtb_product_categories", "product_id = ?", array($product_id)); 
    802802                $this->g_category_id = $category_id; 
    803803            } else { 
    … …  
    17231723                $objQuery =& SC_Query::getSingletonInstance(); 
    17241724                $where = "product_id = ?"; 
    1725                 $maker_id = $objQuery->getCol("dtb_products", "maker_id", "product_id = ?", array($product_id)); 
     1725                $maker_id = $objQuery->getCol("maker_id", "dtb_products", "product_id = ?", array($product_id)); 
    17261726                $this->g_maker_id = $maker_id; 
    17271727            } else { 
Note: See TracChangeset for help on using the changeset viewer.