Changeset 19401


Ignore:
Timestamp:
2010/11/07 02:39:51 (13 years ago)
Author:
kim
Message:

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

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

Legend:

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

    r19227 r19401  
    8181    function mobileProcess(){ 
    8282        parent::mobileProcess(); 
    83         $this->action(); 
     83        $this->mobileAction(); 
    8484        $this->sendResponse(); 
    8585    } 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_Review.php

    r19352 r19401  
    178178 
    179179        $this->transactionid = SC_Helper_Session_Ex::getToken(); 
    180         //$objView->assignobj($this); 
    181         //$objView->display($this->tpl_mainpage); 
     180        $this->setTemplate($this->tpl_mainpage); 
    182181    } 
    183182 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_ReviewComplete.php

    r19081 r19401  
    6565     */ 
    6666    function action() { 
    67  
    68         //$objView = new SC_SiteView(); 
    69  
    70         //$objView->assignobj($this); 
    71         //$objView->display($this->tpl_mainpage); 
     67        $this->setTemplate($this->tpl_mainpage); 
    7268    } 
    7369 
  • branches/camp/camp-2_5-E/data/class/pages/products/LC_Page_Products_Search.php

    r19227 r19401  
    9292     * @return void 
    9393     */ 
    94     function mobileProcess() { 
    95         //$objView = new SC_MobileView(); 
    96  
    97         //$objView->assignobj($this); 
    98         //$objView->display(SITE_FRAME); 
     94    function mobileAction() { 
    9995    } 
    10096 
  • branches/camp/camp-2_5-E/data/class/pages/regist/LC_Page_Regist.php

    r19352 r19401  
    5757     */ 
    5858    function process() { 
    59         $objView = new SC_SiteView(); 
     59        parent::process(); 
     60        $this->action(); 
     61        $this->sendResponse(); 
     62    } 
     63 
     64    /** 
     65     * Page のAction. 
     66     * 
     67     * @return void 
     68     */ 
     69    function action() { 
     70        //$objView = new SC_SiteView(); 
    6071        $objSiteInfo = $objView->objSiteInfo; 
    6172        $objCustomer = new SC_Customer(); 
     
    96107 
    97108        //---- ページ表示 
    98         $objView->assignobj($this); 
    99         $objView->display(SITE_FRAME); 
     109        //$objView->assignobj($this); 
     110        //$objView->display(SITE_FRAME); 
    100111    } 
    101112 
     
    115126     */ 
    116127    function mobileProcess() { 
    117         $objView = new SC_MobileView(); 
     128        parent::mobileProcess(); 
     129        $this->mobileAction(); 
     130        $this->sendResponse(); 
     131    } 
     132 
     133    /** 
     134     * Page のAction(モバイル). 
     135     * 
     136     * @return void 
     137     */ 
     138    function mobileAction() { 
     139        //$objView = new SC_MobileView(); 
    118140        $objSiteInfo = $objView->objSiteInfo; 
    119141        $objCustomer = new SC_Customer(); 
     
    150172 
    151173        //---- ページ表示 
    152         $objView->assignobj($this); 
    153         $objView->display(SITE_FRAME); 
     174        //$objView->assignobj($this); 
     175        //$objView->display(SITE_FRAME); 
    154176    } 
    155177 
  • branches/camp/camp-2_5-E/data/class/pages/regist/LC_Page_Regist_Complete.php

    r18701 r19401  
    5555     */ 
    5656    function process() { 
     57        parent::process(); 
     58        $this->action(); 
     59        $this->sendResponse(); 
     60    } 
     61 
     62    /** 
     63     * Page のAction. 
     64     * 
     65     * @return void 
     66     */ 
     67    function action() { 
    5768        global $objCampaignSess; 
    5869 
    59         $objView = new SC_SiteView(); 
     70        //$objView = new SC_SiteView(); 
    6071        $objQuery = new SC_Query(); 
    6172        $objCampaignSess = new SC_CampaignSession(); 
     
    7485        $helper->sfGetPageLayout($this, false, DEF_LAYOUT); 
    7586 
    76         $objView->assignobj($this); 
     87        //$objView->assignobj($this); 
    7788        // フレームを選択(キャンペーンページから遷移なら変更) 
     89        /* 
    7890        if($this->dir_name != "") { 
    7991            $objView->display(CAMPAIGN_TEMPLATE_PATH . $dir_name  . "/active/site_frame.tpl"); 
     
    8294            $objView->display(SITE_FRAME); 
    8395        } 
     96         * 
     97         */ 
    8498    } 
    8599 
     
    99113     */ 
    100114    function mobileProcess() { 
    101         $objView = new SC_MobileView(); 
     115        parent::mobileProcess(); 
     116        $this->mobileAction(); 
     117        $this->sendResponse(); 
     118    } 
     119 
     120    /** 
     121     * Page のAction(モバイル). 
     122     * 
     123     * @return void 
     124     */ 
     125    function mobileAction() { 
     126 
     127        //$objView = new SC_MobileView(); 
    102128 
    103129        // カートが空かどうかを確認する。 
     
    105131        $this->tpl_cart_empty = count($objCartSess->getCartList()) < 1; 
    106132 
    107         $objView->assignobj($this); 
    108         $objView->display(SITE_FRAME); 
     133        //$objView->assignobj($this); 
     134        //$objView->display(SITE_FRAME); 
    109135    } 
    110136 
Note: See TracChangeset for help on using the changeset viewer.