Changeset 19081


Ignore:
Timestamp:
2010/11/06 22:05:57 (13 years ago)
Author:
kim
Message:

【開発合宿】 processをactionとsendResponseに分離(/products)

Location:
branches/camp/camp-2_5-E/data/class/pages/products
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_CategoryList.php

    r18701 r19081  
    5252     */ 
    5353    function process() { 
     54        parent::process(); 
     55        $this->action(); 
     56        $this->sendResponse(); 
    5457    } 
     58 
     59    /** 
     60     * Page のAction 
     61     * @return void 
     62     */ 
     63    function action() {} 
    5564 
    5665    /** 
     
    6069     */ 
    6170    function mobileInit() { 
     71        $this->init(); 
    6272        $this->tpl_mainpage = MOBILE_TEMPLATE_DIR . 'products/category_list.tpl'; 
    6373        $this->tpl_title = 'カテゴリ一覧ページ'; 
     
    6575 
    6676    /** 
    67      * Page のプロセス(モバイル). 
     77     * Page のプロセス(モバイル). 
    6878     * 
    6979     * @return void 
    7080     */ 
    71     function mobileProcess() { 
     81    function mobileProcess(){ 
     82        $this->action(); 
     83        $this->sendResponse(); 
     84    } 
     85 
     86    /** 
     87     * Page のAction(モバイル). 
     88     * 
     89     * @return void 
     90     */ 
     91    function mobileAction() { 
    7292        // カテゴリIDの正当性チェック 
    7393        $this->lfCheckCategoryId(); 
    7494         
    75         $objView = new SC_MobileView(); 
     95        //$objView = new SC_MobileView(); 
    7696 
    7797        // レイアウトデザインを取得 
     
    82102        $this->lfGetCategories(@$_GET['category_id'], true, $this); 
    83103 
    84         $objView->assignobj($this); 
    85         $objView->display(SITE_FRAME); 
     104        //$objView->assignobj($this); 
     105        //$objView->display(SITE_FRAME); 
    86106    } 
    87107 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_Detail.php

    r18876 r19081  
    7878     */ 
    7979    function process() { 
     80        parent::process(); 
     81        $this->action(); 
     82    } 
     83 
     84    /** 
     85     * Page のAction. 
     86     * 
     87     * @return void 
     88     */ 
     89    function action() { 
    8090        // プロダクトIDの正当性チェック 
    8191        $product_id = $this->lfCheckProductId(); 
     
    269279        $this->lfConvertParam(); 
    270280 
    271         $objView->assignobj($this); 
    272         $objView->display(SITE_FRAME); 
     281        //$objView->assignobj($this); 
     282        //$objView->display(SITE_FRAME); 
    273283    } 
    274284 
     
    294304    /** 
    295305     * Page のプロセス(モバイル). 
     306     * @return void 
     307     */ 
     308    function mobileProcess() { 
     309        $this->mobileAction(); 
     310        $this->sendResponse(); 
     311    } 
     312 
     313    /** 
     314     * Page のプロセス(モバイル). 
    296315     * 
    297316     * FIXME 要リファクタリング 
     
    303322        $product_id = $this->lfCheckProductId(); 
    304323 
    305         $objView = new SC_MobileView(); 
     324        //$objView = new SC_MobileView(); 
    306325        $objCustomer = new SC_Customer(); 
    307326        $objQuery = new SC_Query(); 
     
    452471        $this->arrRecommend = $this->lfPreGetRecommendProducts($product_id); 
    453472 
    454         $objView->assignobj($this); 
    455         $objView->display(SITE_FRAME); 
     473        //$objView->assignobj($this); 
     474        //$objView->display(SITE_FRAME); 
    456475    } 
    457476 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_List.php

    r18862 r19081  
    8686        $this->lfLoadParam(); 
    8787 
    88         $objView = new SC_SiteView(!$this->inCart); 
     88        $this->action(); 
     89 
     90        $this->sendResponse(); 
     91        
     92    } 
     93 
     94    /** 
     95     *  ページのアクション(旧process) 
     96     * @return void 
     97     */ 
     98    function action() { 
     99        //$objView = new SC_SiteView(!$this->inCart); 
    89100        $objQuery = new SC_Query(); 
    90101        $objDb = new SC_Helper_DB_Ex(); 
     
    176187            } 
    177188        } 
     189 
    178190        $this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 
    179191        $this->tpl_onload .= 'fnOnLoad(); '; 
    180192 
    181193        $this->tpl_rnd = SC_Utils_Ex::sfGetRandomString(3); 
    182  
    183         $objView->assignobj($this); 
    184         $objView->display(SITE_FRAME); 
    185194    } 
    186195 
     
    197206     * Page のプロセス(モバイル). 
    198207     * 
    199      * FIXME スパゲッティ... 
    200      * 
    201208     * @return void 
    202209     */ 
     
    204211        $this->lfLoadParam(); 
    205212 
    206         $objView = new SC_MobileView(); 
     213        $this->mobieAction(); 
     214 
     215        $this->sendResponse(); 
     216    } 
     217 
     218    /** 
     219     * Page のAction(モバイル). 
     220     * 
     221     * FIXME スパゲッティ... 
     222     * 
     223     * @return void 
     224     */ 
     225    function mobieAction(){ 
     226        //$objView = new SC_MobileView(); 
    207227        $objQuery = new SC_Query(); 
    208228        $objDb = new SC_Helper_DB_Ex(); 
     
    263283 
    264284        $this->tpl_mainpage = MOBILE_TEMPLATE_DIR . "products/list.tpl"; 
    265  
    266         $objView->assignobj($this); 
    267         $objView->display(SITE_FRAME); 
    268285    } 
    269286 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_Review.php

    r18820 r19081  
    6666    /** 
    6767     * Page のプロセス. 
     68     */ 
     69    function process() { 
     70        $this->action(); 
     71        $this->sendResponse(); 
     72    } 
     73 
     74    /** 
     75     * Page のAction. 
    6876     * 
    6977     * @return void 
    7078     */ 
    71     function process() { 
    72         $objView = new SC_SiteView(); 
     79    function action() { 
     80        //$objView = new SC_SiteView(); 
    7381        $objQuery = new SC_Query(); 
    7482 
     
    169177 
    170178        $this->transactionid = $this->getToken(); 
    171         $objView->assignobj($this); 
    172         $objView->display($this->tpl_mainpage); 
     179        //$objView->assignobj($this); 
     180        //$objView->display($this->tpl_mainpage); 
    173181    } 
    174182 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_ReviewComplete.php

    r18701 r19081  
    4747    } 
    4848 
     49 
    4950    /** 
    5051     * Page のプロセス. 
     
    5354     */ 
    5455    function process() { 
     56        parent::process(); 
     57        $this->action(); 
     58        $this->sendResponse(); 
     59    } 
     60     
     61    /** 
     62     * Page のAction. 
     63     * 
     64     * @return void 
     65     */ 
     66    function action() { 
    5567 
    56         $objView = new SC_SiteView(); 
     68        //$objView = new SC_SiteView(); 
    5769 
    58         $objView->assignobj($this); 
    59         $objView->display($this->tpl_mainpage); 
     70        //$objView->assignobj($this); 
     71        //$objView->display($this->tpl_mainpage); 
    6072    } 
    6173 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_Search.php

    r18701 r19081  
    5252     */ 
    5353    function process() { 
     54        parent::process(); 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
     58 
     59    /** 
     60     * Page のプロセス. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5465    } 
    5566 
     
    6071     */ 
    6172    function mobileInit() { 
     73        $this->init(); 
    6274        $this->tpl_mainpage = 'products/search.tpl'; 
    6375        $this->tpl_title = '商品検索'; 
     76    } 
     77 
     78    /** 
     79     * Page のAction(モバイル). 
     80     * 
     81     * @return void 
     82     */ 
     83    function mobileProcess() { 
     84        $this->mobileAction(); 
     85        $this->sendResponse(); 
    6486    } 
    6587 
     
    7092     */ 
    7193    function mobileProcess() { 
    72         $objView = new SC_MobileView(); 
     94        //$objView = new SC_MobileView(); 
    7395 
    74         $objView->assignobj($this); 
    75         $objView->display(SITE_FRAME); 
     96        //$objView->assignobj($this); 
     97        //$objView->display(SITE_FRAME); 
    7698    } 
    7799 
Note: See TracChangeset for help on using the changeset viewer.