Ignore:
Timestamp:
2013/03/01 10:40:00 (13 years ago)
Author:
pineray
Message:

#2166 親ID配列取得の効率化

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r22589 r22590  
    130130    function lfGetCatTree($arrParentCategoryId, $count_check = false) 
    131131    { 
    132         $objDb = new SC_Helper_DB_Ex(); 
    133132        $objCategory = new SC_Helper_Category_Ex($count_check); 
    134133        $arrTree = $objCategory->getTree(); 
     
    136135        $arrCategory = $objCategory->getList(); 
    137136        foreach ($arrParentCategoryId as $category_id) { 
    138             $arrParentID = $objDb->sfGetParents( 
    139                 'dtb_category', 
    140                 'parent_category_id', 
    141                 'category_id', 
    142                 $category_id 
    143             ); 
     137            $arrParentID = SC_Utils_Ex::getTreeTrail($category_id, 'category_id', 'parent_category_id', $arrCategory); 
    144138            $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray( 
    145139                $arrCategory, 
Note: See TracChangeset for help on using the changeset viewer.