Ignore:
Timestamp:
2013/07/07 16:48:59 (11 years ago)
Author:
kimoto
Message:

#2043 typo修正・ソース整形・ソースコメントの改善 for 2.13.0
不要な変数を削除
ソースの整形

File:
1 edited

Legend:

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

    r22926 r22946  
    9494        $objProduct = new SC_Product_Ex(); 
    9595        // パラメーター管理クラス 
    96         $objFormParam = new SC_FormParam_Ex();         
     96        $objFormParam = new SC_FormParam_Ex(); 
    9797 
    9898        // パラメーター情報の初期化 
     
    139139        } 
    140140        $this->objNavi      = new SC_PageNavi_Ex($this->tpl_pageno, $this->tpl_linemax, $this->disp_number, 'fnNaviPage', NAVI_PMAX, $urlParam, SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE); 
    141         $this->arrProducts  = $this->lfGetProductsList($arrSearchCondition, $this->disp_number, $this->objNavi->start_row, $this->tpl_linemax, $objProduct); 
     141        $this->arrProducts  = $this->lfGetProductsList($arrSearchCondition, $this->disp_number, $this->objNavi->start_row, $objProduct); 
    142142 
    143143        switch ($this->getMode()) { 
     
    156156    /** 
    157157     * パラメーター情報の初期化 
    158      *  
     158     * 
    159159     * @param array $objFormParam フォームパラメータークラス 
    160160     * @return void 
     
    207207 
    208208    /* 商品一覧の表示 */ 
    209     function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) 
     209    function lfGetProductsList($searchCondition, $disp_number, $startno, &$objProduct) 
    210210    { 
    211211        $arrOrderVal = array(); 
     
    427427    { 
    428428        $js_fnOnLoad = ''; 
    429         foreach ($arrProducts as $key => $value) { 
     429        foreach (array_keys($arrProducts) as $key) { 
    430430            if ($arrProducts[$key]['product_id'] == $product_id) { 
    431431                $arrProducts[$key]['product_class_id']  = $arrForm['product_class_id']; 
     
    447447     * @return void 
    448448     */ 
    449     function lfAddCart($arrForm, $referer) 
     449    function lfAddCart($arrForm) 
    450450    { 
    451451        $objCartSess = new SC_CartSession_Ex(); 
     
    555555            $arrErr = $this->lfCheckError($objFormParam); 
    556556            if (empty($arrErr)) { 
    557                 $this->lfAddCart($this->arrForm, $_SERVER['HTTP_REFERER']); 
     557                $this->lfAddCart($this->arrForm); 
    558558 
    559559                // 開いているカテゴリーツリーを維持するためのパラメーター 
Note: See TracChangeset for help on using the changeset viewer.