Changeset 22588
- Timestamp:
- 2013/03/01 05:15:36 (11 years ago)
- Location:
- branches/version-2_12-dev/data
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r22586 r22588 130 130 function lfGetCatTree($arrParentCategoryId, $count_check = false) 131 131 { 132 $objQuery =& SC_Query_Ex::getSingletonInstance();133 132 $objDb = new SC_Helper_DB_Ex(); 134 135 $col = '*'; 136 $from = 'dtb_category left join dtb_category_total_count ON dtb_category.category_id = dtb_category_total_count.category_id'; 137 // 登録商品数のチェック 138 if ($count_check) { 139 $where = 'del_flg = 0 AND product_count > 0'; 140 } else { 141 $where = 'del_flg = 0'; 142 } 143 $objQuery->setOption('ORDER BY rank DESC'); 144 $arrRet = $objQuery->select($col, $from, $where); 145 146 $arrTree = SC_Utils_Ex::buildTree('category_id', 'parent_category_id', 10, $arrRet); 147 133 $objCategory = new SC_Helper_Category_Ex(); 134 $arrTree = $objCategory->getTree($count_check); 135 136 $arrCategory = $objCategory->getList($count_check); 148 137 foreach ($arrParentCategoryId as $category_id) { 149 138 $arrParentID = $objDb->sfGetParents( … … 154 143 ); 155 144 $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray( 156 $arr Ret,145 $arrCategory, 157 146 'parent_category_id', 158 147 'category_id', … … 160 149 ); 161 150 $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray( 162 $arr Ret,151 $arrCategory, 163 152 'parent_category_id', 164 153 'category_id',
Note: See TracChangeset
for help on using the changeset viewer.