Ignore:
Timestamp:
2011/02/21 10:13:55 (15 years ago)
Author:
nakanishi
Message:

ref #1015 [管理画面]コンテンツ管理(CSV出力項目設定以外)
再度リファクタリング。
変数名の修正。
デバッグ文を削除。
メソッドにコメントを付与。

Location:
branches/version-2_5-dev/data/class/pages/admin/contents
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php

    r20265 r20288  
    119119        //---- データ削除 
    120120            if (is_numeric($news_id)) { 
    121                 $this->p($news_id); 
    122121                $pre_rank = $this->getRankByNewsId($news_id); 
    123122                $this->computeRankForDelete($news_id,$pre_rank); 
    124                 $this->objDisplay->reload();             //自分にリダイレクト(再読込による誤動作防止) 
     123                SC_Response_Ex::reload();             //自分にリダイレクト(再読込による誤動作防止) 
    125124            } 
    126125            break; 
     
    149148        } 
    150149 
    151         $this->list_data = $this->getNews(); 
    152         $this->line_max = count($this->list_data); 
     150        $this->arrNews = $this->getNews(); 
     151        $this->line_max = count($this->arrNews); 
    153152        $this->max_rank = $this->getRankMax(); 
    154153    } 
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php

    r20265 r20288  
    113113        } 
    114114         
    115         $this->category_id = $this->getCategoryId($arrPost['category_id']); 
     115        $this->category_id = intval($arrPost['category_id']); 
    116116        $this->arrItems = $arrItems; 
    117117 
     
    238238    } 
    239239 
    240     /** 
    241      * カテゴリーIDを取得する。 
    242      * @param Integer $category_id 
    243      * @return Integer 
    244      */ 
    245     function getCategoryId($category_id){ 
    246         if ( SC_Utils_Ex::sfIsInt($category_id)){ 
    247             return $category_id; 
    248         }else{ 
    249             return 0; 
    250         } 
    251     } 
    252  
    253240} 
    254241?> 
  • branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r20265 r20288  
    176176    } 
    177177 
     178    /** 
     179     * 指定された条件の商品の数を取得する 
     180     * @param String $where 検索条件 
     181     * @param Array $arrval 検索パラメータ 
     182     * @return Integer $linemax 条件にマッチする商品の数 
     183     */ 
    178184    function getLineCount($where,$arrval){ 
    179185        $objQuery =& SC_Query::getSingletonInstance(); 
     
    182188    } 
    183189 
     190    /** 
     191     * @param  $search_page_max 
     192     * @return string 
     193     */ 
    184194    function setPageMax($search_page_max){ 
    185195            // ページ送りの処理 
     
    192202    } 
    193203 
     204    /** 
     205     * 指定された条件の商品データを取得する。 
     206     * @param Object $objQuery ObjQueryオブジェクト 
     207     * @param Array $arrval 検索パラメータ 
     208     * @param String $where 検索条件 
     209     * @return Array 商品情報の配列 
     210     */ 
    194211    function getProducts(&$objQuery,$arrval,$where){ 
    195212        $objQuery =& SC_Query::getSingletonInstance(); 
Note: See TracChangeset for help on using the changeset viewer.