Changeset 19161


Ignore:
Timestamp:
2010/11/06 23:19:26 (13 years ago)
Author:
Yammy
Message:

新process()対応

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

Legend:

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

    r18853 r19161  
    8282     */ 
    8383    function process() { 
    84         global $objCampaignSess; 
    85  
    86         $this->objView = new SC_SiteView(); 
    87         $objCampaignSess = new SC_CampaignSession(); 
     84        $this->action(); 
     85        $this->sendResponse(); 
     86    } 
     87 
     88    /** 
     89     * Page のアクション. 
     90     * 
     91     * @return void 
     92     */ 
     93    function action() { 
    8894        $objDb = new SC_Helper_DB_Ex(); 
    8995        $CONF = $objDb->sf_getBasisData();          // 店舗基本情報 
     
    116122              break; 
    117123        } 
    118  
    119         //---- ページ表示 
    120         $this->objView->assignobj($this); 
    121         // フレームを選択(キャンペーンページから遷移なら変更) 
    122         $objCampaignSess->pageView($this->objView); 
    123124    } 
    124125 
     
    138139     */ 
    139140    function mobileProcess() { 
    140         $objView = new SC_MobileView(); 
     141        $this->mobileAction(); 
     142        $this->sendResponse(); 
     143    } 
     144 
     145    /** 
     146     * Page のアクション(モバイル). 
     147     * 
     148     * @return void 
     149     */ 
     150    function mobileAction() { 
    141151        $objDb = new SC_Helper_DB_Ex(); 
    142         $CONF = $objDb->sf_getBasisData();          // 店舗基本情報 
    143  
    144         //---- ページ表示 
    145         $objView->assignobj($this); 
    146         $objView->assignarray($CONF); 
    147         $objView->display(SITE_FRAME); 
     152        $this->CONF = $objDb->sf_getBasisData();            // 店舗基本情報 
    148153    } 
    149154 
  • branches/camp/camp-2_5-E/data/class/pages/contact/LC_Page_Contact_Complete.php

    r18701 r19161  
    5555     */ 
    5656    function process() { 
    57         global $objCampaignSess; 
     57        $this->action(); 
     58        $this->sendResponse(); 
     59    } 
    5860 
    59         $objView = new SC_SiteView(); 
    60         $objCampaignSess = new SC_CampaignSession(); 
    61  
     61    /** 
     62     * Page のアクション. 
     63     * 
     64     * @return void 
     65     */ 
     66    function action() { 
    6267        // レイアウトデザインを取得 
    6368        $layout = new SC_Helper_PageLayout_Ex(); 
    6469        $layout->sfGetPageLayout($this, false, DEF_LAYOUT); 
    65  
    66         // キャンペーンからの遷移かチェック 
    67         $this->is_campaign = $objCampaignSess->getIsCampaign(); 
    68         $this->campaign_dir = $objCampaignSess->getCampaignDir(); 
    69  
    70         $objView->assignobj($this); 
    71         // フレームを選択(キャンペーンページから遷移なら変更) 
    72         $objCampaignSess->pageView($objView); 
    7370    } 
    7471 
Note: See TracChangeset for help on using the changeset viewer.