Ignore:
Timestamp:
2011/02/04 18:15:31 (13 years ago)
Author:
yomoro
Message:

#985 リファクタリング(エラー画面)

File:
1 edited

Legend:

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

    r19957 r20092  
    6060     */ 
    6161    function init() { 
     62        parent::init(); 
    6263        $this->tpl_mainpage = 'error.tpl'; 
    6364        $this->tpl_title = 'エラー'; 
     65    } 
     66 
     67    /** 
     68     * Page のプロセス. 
     69     * 
     70     * @return void 
     71     */ 
     72    function process() { 
     73        parent::process(); 
     74        $this->action(); 
     75        $this->sendResponse(); 
    6476    } 
    6577 
     
    6981     * @return void 
    7082     */ 
    71     function process() { 
    72         parent::process(); 
    73  
    74         // XXX 未使用? 
    75         if ($this->objSiteSess != "") { 
    76             $this->objSiteSess->setNowPage('error'); 
    77         } 
    78  
    79         if($this->is_mobile === true) { 
    80             $objView = new SC_MobileView(); 
    81         } else { 
    82             $objView = new SC_SiteView(); 
    83         } 
    84  
     83    function action(){ 
    8584        switch ($this->type) { 
    8685            case PRODUCT_NOT_FOUND: 
     
    159158                break; 
    160159        } 
    161  
    162         $objView->assignobj($this); 
    163         $objView->display(SITE_FRAME); 
    164160    } 
    165161 
Note: See TracChangeset for help on using the changeset viewer.