Changeset 21410 for branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
- Timestamp:
- 2012/01/17 16:32:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r21317 r21410 65 65 switch ( SC_Display_Ex::detectDevice() ) { 66 66 case DEVICE_TYPE_MOBILE: 67 // メインカテゴリ の取得67 // メインカテゴリーの取得 68 68 $this->arrCat = $this->lfGetMainCat(true); 69 69 break; … … 117 117 * @param array $arrParentCategoryId 親カテゴリの配列 118 118 * @param boolean $count_check 登録商品数をチェックする場合はtrue 119 * @return array $arrRet カテゴリ ツリーの配列を返す119 * @return array $arrRet カテゴリーツリーの配列を返す 120 120 */ 121 121 function lfGetCatTree($arrParentCategoryId, $count_check = false) { … … 166 166 167 167 /** 168 * メインカテゴリ の取得.168 * メインカテゴリーの取得. 169 169 * 170 170 * @param boolean $count_check 登録商品数をチェックする場合はtrue 171 * @return array $arrMainCat メインカテゴリ の配列を返す171 * @return array $arrMainCat メインカテゴリーの配列を返す 172 172 */ 173 173 function lfGetMainCat($count_check = false) { … … 175 175 $col = '*'; 176 176 $from = 'dtb_category left join dtb_category_total_count using (category_id)'; 177 // メインカテゴリ とその直下のカテゴリを取得する。177 // メインカテゴリーとその直下のカテゴリーを取得する。 178 178 $where = 'level <= 2 AND del_flg = 0'; 179 179 // 登録商品数のチェック … … 183 183 $objQuery->setOption('ORDER BY rank DESC'); 184 184 $arrRet = $objQuery->select($col, $from, $where); 185 // メインカテゴリ を抽出する。185 // メインカテゴリーを抽出する。 186 186 $arrMainCat = array(); 187 187 foreach ($arrRet as $cat) { … … 189 189 continue; 190 190 } 191 // 子カテゴリ を持つかどうかを調べる。191 // 子カテゴリーを持つかどうかを調べる。 192 192 $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray( 193 193 $arrRet,
Note: See TracChangeset
for help on using the changeset viewer.