Ignore:
Timestamp:
2012/01/17 16:32:25 (12 years ago)
Author:
Seasoft
Message:

2.12系へマイルストーン変更となったチケット分を差し戻し
r21326 #1536
r21325 #1528
r21324 #1547,#1546
r21323 #1546
r21322 #1543
r21321 #1536
r21320 #1536
r21319 #1544
r21318 #1521,#1522
r21317 #1431

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/products/LC_Page_Products_CategoryList.php

    r21317 r21410  
    6565        $this->lfCheckCategoryId(); 
    6666 
    67         // カテゴリ情報を取得する。 
     67        // カテゴリ情報を取得する。 
    6868        $objFormParam = $this->lfInitParam($_REQUEST); 
    6969        $arrCategoryData = $this->lfGetCategories($objFormParam->getValue('category_id'), true, $this); 
     
    9191 
    9292    /** 
    93      * 選択されたカテゴリとその子カテゴリの情報を取得し、 
     93     * 選択されたカテゴリーとその子カテゴリーの情報を取得し、 
    9494     * ページオブジェクトに格納する。 
    9595     * 
    96      * @param string $category_id カテゴリID 
    97      * @param boolean $count_check 有効な商品がないカテゴリを除くかどうか 
     96     * @param string $category_id カテゴリID 
     97     * @param boolean $count_check 有効な商品がないカテゴリを除くかどうか 
    9898     * @param object &$objPage ページオブジェクト 
    9999     * @return void 
    100100     */ 
    101101    function lfGetCategories($category_id, $count_check = false, &$objPage) { 
    102         // カテゴリの正しいIDを取得する。 
     102        // カテゴリの正しいIDを取得する。 
    103103        $category_id = $this->lfCheckCategoryId($category_id); 
    104104        if ($category_id == 0) { 
     
    106106        } 
    107107 
    108         $arrCategory = null;    // 選択されたカテゴリ 
    109         $arrChildren = array(); // 子カテゴリ 
     108        $arrCategory = null;    // 選択されたカテゴリ 
     109        $arrChildren = array(); // 子カテゴリ 
    110110 
    111111        $arrAll = SC_Helper_DB_Ex::sfGetCatTree($category_id, $count_check); 
    112112        foreach ($arrAll as $category) { 
    113             // 選択されたカテゴリの場合 
     113            // 選択されたカテゴリの場合 
    114114            if ($category['category_id'] == $category_id) { 
    115115                $arrCategory = $category; 
     
    117117            } 
    118118 
    119             // 関係のないカテゴリはスキップする。 
     119            // 関係のないカテゴリはスキップする。 
    120120            if ($category['parent_category_id'] != $category_id) { 
    121121                continue; 
    122122            } 
    123123 
    124             // 子カテゴリの場合は、孫カテゴリが存在するかどうかを調べる。 
     124            // 子カテゴリーの場合は、孫カテゴリーが存在するかどうかを調べる。 
    125125            $arrGrandchildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrAll, 'parent_category_id', 'category_id', $category['category_id']); 
    126126            $category['has_children'] = count($arrGrandchildrenID) > 0; 
     
    132132        } 
    133133 
    134         // 子カテゴリの商品数を合計する。 
     134        // 子カテゴリの商品数を合計する。 
    135135        $children_product_count = 0; 
    136136        foreach ($arrChildren as $category) { 
     
    138138        } 
    139139 
    140         // 選択されたカテゴリに直属の商品がある場合は、子カテゴリの先頭に追加する。 
     140        // 選択されたカテゴリーに直属の商品がある場合は、子カテゴリーの先頭に追加する。 
    141141        if ($arrCategory['product_count'] > $children_product_count) { 
    142             $arrCategory['product_count'] -= $children_product_count; // 子カテゴリの商品数を除く。 
     142            $arrCategory['product_count'] -= $children_product_count; // 子カテゴリの商品数を除く。 
    143143            $arrCategory['has_children'] = false; // 商品一覧ページに遷移させるため。 
    144144            array_unshift($arrChildren, $arrCategory); 
Note: See TracChangeset for help on using the changeset viewer.