Ignore:
Timestamp:
2011/03/07 15:37:16 (15 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

  • 半SP
Location:
branches/version-2_5-dev/data/class/pages/rss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss.php

    r20534 r20540  
    6060        //新着情報を取得 
    6161        $arrNews = $this->lfGetNews($objQuery); 
    62          
     62 
    6363        //キャッシュしない(念のため) 
    6464        header("pragma: no-cache"); 
     
    113113        $objQuery->setOrder($order); 
    114114        $arrNews = $objQuery->select($col,$from,$where); 
    115          
     115 
    116116        // RSS用に変換 
    117117        foreach (array_keys($arrNews) as $key) { 
     
    120120            $row['news_date'] = date('r', strtotime($row['news_date'])); 
    121121        } 
    122          
     122 
    123123        return $arrNews; 
    124124    } 
  • branches/version-2_5-dev/data/class/pages/rss/LC_Page_Rss_Products.php

    r20534 r20540  
    6565    function action() { 
    6666        $objView = new SC_SiteView_Ex(); 
    67          
     67 
    6868        //店舗情報をセット 
    6969        $this->arrSiteInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
    70          
     70 
    7171        //商品IDを取得 
    7272        if ( isset($_GET['product_id']) && $_GET['product_id'] != '' && is_numeric($_GET['product_id']) ) { 
     
    7575            $product_id = ''; 
    7676        } 
    77          
     77 
    7878        // モードによって分岐 
    7979        $mode = $this->getMode(); 
     
    9797            break; 
    9898        } 
    99          
     99 
    100100        // 商品情報をセット 
    101101        $this->arrProduct = $arrProduct; 
    102102        $this->arrProductKeys = $this->lfGetProductKeys($arrProduct); 
    103          
     103 
    104104        //セットしたデータをテンプレートファイルに出力 
    105105        $objView->assignobj($this); 
    106          
     106 
    107107        //キャッシュしない(念のため) 
    108108        header("Pragma: no-cache"); 
    109          
     109 
    110110        //XMLテキスト(これがないと正常にRSSとして認識してくれないツールがあるため) 
    111111        header("Content-type: application/xml"); 
    112112        P_DETAIL_URLPATH; 
    113          
     113 
    114114        //画面表示 
    115115        $objView->display($this->tpl_mainpage, true); 
Note: See TracChangeset for help on using the changeset viewer.