Ignore:
Timestamp:
2013/03/05 08:52:08 (13 years ago)
Author:
pineray
Message:

#2166 カテゴリーブロックのロジックを見直し.

File:
1 edited

Legend:

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

    r22595 r22602  
    3737    // }}} 
    3838    // {{{ functions 
     39    public $arrParentID; 
    3940 
    4041    /** 
     
    133134        $arrTree = $objCategory->getTree(); 
    134135 
    135         $arrCategory = $objCategory->getList(); 
     136        $this->arrParentID = array(); 
    136137        foreach ($arrParentCategoryId as $category_id) { 
    137138            $arrParentID = $objCategory->getTreeTrail($category_id); 
    138             $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray( 
    139                 $arrCategory, 
    140                 'parent_category_id', 
    141                 'category_id', 
    142                 $arrParentID 
    143             ); 
    144             $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray( 
    145                 $arrCategory, 
    146                 'parent_category_id', 
    147                 'category_id', 
    148                 $category_id 
    149             ); 
     139            $this->arrParentID = array_merge($this->arrParentID, $arrParentID);  
    150140            $this->root_parent_id[] = $arrParentID[0]; 
    151             $this->arrDispID = array_merge($arrBrothersID, $arrChildrenID); 
    152141        } 
    153142 
Note: See TracChangeset for help on using the changeset viewer.