Ignore:
Timestamp:
2011/02/19 17:07:29 (12 years ago)
Author:
tao
Message:

refs #982 リファクタリング 商品一覧の表示まで

File:
1 edited

Legend:

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

    r20180 r20199  
    509509            $category_id = (int) $category_id; 
    510510            $product_id = (int) $product_id; 
    511             if (SC_Utils_Ex::sfIsInt($category_id) && $category_id != 0 && $this->sfIsRecord("dtb_category","category_id", $category_id)) { 
     511            if (SC_Utils_Ex::sfIsInt($category_id) && $category_id != 0 && SC_Helper_DB_Ex::sfIsRecord("dtb_category","category_id", $category_id)) { 
    512512                $this->g_category_id = array($category_id); 
    513             } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) { 
     513            } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && SC_Helper_DB_Ex::sfIsRecord("dtb_products","product_id", $product_id, $status)) { 
    514514                $objQuery =& SC_Query::getSingletonInstance(); 
    515515                $where = "product_id = ?"; 
     
    829829        $arrChildren[] = $id; 
    830830 
    831         $arrRet = $this->sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrPID); 
     831        $arrRet = SC_Helper_DB_Ex::sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrPID); 
    832832 
    833833        while(count($arrRet) > 0) { 
    834834            $arrChildren = array_merge($arrChildren, $arrRet); 
    835             $arrRet = $this->sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrRet); 
     835            $arrRet = SC_Helper_DB_Ex::sfGetChildrenArraySub($arrData, $pid_name, $id_name, $arrRet); 
    836836        } 
    837837 
     
    917917    function sfGetCatWhere($category_id) { 
    918918        // 子カテゴリIDの取得 
    919         $arrRet = $this->sfGetChildsID("dtb_category", "parent_category_id", "category_id", $category_id); 
     919        $arrRet = SC_Helper_DB_Ex::sfGetChildrenArray("dtb_category", "parent_category_id", "category_id", $category_id); 
    920920        $tmp_where = ""; 
    921921        foreach ($arrRet as $val) { 
Note: See TracChangeset for help on using the changeset viewer.