Ignore:
Timestamp:
2010/11/06 17:10:56 (16 years ago)
Author:
Yammy
Message:

各ページクラスのprocess()より表示部分をLC_Page::display()に出す案

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-B/data/class/pages/LC_Page.php

    r18701 r18950  
    7373    var $transactionid; 
    7474 
     75    /**  */ 
     76    var $site_frame; 
     77 
    7578    // }}} 
    7679    // {{{ functions 
     
    8689        $layout = new SC_Helper_PageLayout_Ex(); 
    8790        $layout->sfGetPageLayout($this, false); 
     91        $this->tpl = SITE_FRAME; 
    8892    } 
    8993 
     
    9498     */ 
    9599    function process() {} 
     100 
     101    /** 
     102     *  Page の表示プロセス 
     103     * 
     104     * @return void 
     105     */ 
     106    function display() { 
     107echo "\$this->tpl = $this->tpl<br />\n"; 
     108echo "LC_Page::disp<br />\n"; 
     109 
     110        // SC_Helper_Pagin_Ex::process(); 
     111        $this->objView->assignobj($this); 
     112 
     113        // campaign 
     114        #if (is_object($this->objCampaignSess)) { 
     115            #$this->tpl = $this->objCampaignSess->getPageFrame(); 
     116        #} 
     117 
     118        if (!empty($this->redirect_url)) { 
     119echo "redirect<br />\n"; 
     120            $this->sendRedirect($this->redirect_url); 
     121        } elseif(!empty($this->download)) { 
     122echo "download<br />\n"; 
     123        } else { 
     124echo "default<br />\n"; 
     125            $this->objView->display($this->tpl); 
     126        } 
     127 
     128    } 
    96129 
    97130    /** 
Note: See TracChangeset for help on using the changeset viewer.