Ignore:
Timestamp:
2012/04/18 16:32:47 (12 years ago)
Author:
shutta
Message:

#1296 SC_* のコンストラクタの拡張が無視される
SC_*Viewの修正

Location:
branches/version-2_12-dev/data/class
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_AdminView.php

    r21760 r21765  
    2323 
    2424class SC_AdminView extends SC_View_Ex { 
    25     function SC_AdminView() { 
    26         parent::SC_View(); 
     25    function __construct() { 
     26        parent::__construct(); 
     27    } 
     28 
     29    function init() { 
     30        parent::init(); 
     31 
    2732        $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR; 
    2833        $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR; 
  • branches/version-2_12-dev/data/class/SC_InstallView.php

    r21760 r21765  
    2323 
    2424class SC_InstallView extends SC_View_Ex { 
    25     function SC_InstallView($template_dir, $compile_dir = COMPILE_REALDIR) { 
    26         parent::SC_View(); 
     25    function __construct($template_dir, $compile_dir = COMPILE_REALDIR) { 
     26        parent::__construct(); 
     27 
    2728        $this->_smarty->template_dir = $template_dir; 
    2829        $this->_smarty->compile_dir = $compile_dir; 
  • branches/version-2_12-dev/data/class/SC_MobileView.php

    r21420 r21765  
    2323 
    2424class SC_MobileView extends SC_SiteView_Ex { 
    25     function SC_MobileView($setPrevURL = true) { 
    26         parent::SC_SiteView($setPrevURL); 
     25    function __construct($setPrevURL = true) { 
     26        parent::__construct($setPrevURL); 
     27    } 
     28 
     29    function init() { 
     30        parent::init(); 
     31 
    2732        $this->_smarty->template_dir = MOBILE_TEMPLATE_REALDIR; 
    2833        $this->_smarty->compile_dir = MOBILE_COMPILE_REALDIR; 
  • branches/version-2_12-dev/data/class/SC_SiteView.php

    r21420 r21765  
    2323 
    2424class SC_SiteView extends SC_View_Ex { 
    25     function SC_SiteView($setPrevURL = true) { 
    26         parent::SC_View(); 
     25    function __construct($setPrevURL = true) { 
     26        parent::__construct(); 
     27 
     28        if ($setPrevURL) { 
     29            $this->setPrevURL(); 
     30        } 
     31    } 
     32 
     33    function init() { 
     34        parent::init(); 
    2735 
    2836        $this->_smarty->template_dir = TEMPLATE_REALDIR; 
     
    3139        $this->assignTemplatePath(DEVICE_TYPE_PC); 
    3240        $this->initpath(); 
     41    } 
    3342 
    34         if ($setPrevURL) { 
     43    function setPrevURL() { 
    3544            $objCartSess = new SC_CartSession_Ex(); 
    3645            $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); 
    37         } 
    3846    } 
    3947} 
  • branches/version-2_12-dev/data/class/SC_SmartphoneView.php

    r21420 r21765  
    2323 
    2424class SC_SmartphoneView extends SC_SiteView_Ex { 
    25     function SC_SmartphoneView($setPrevURL = true) { 
    26         parent::SC_SiteView($setPrevURL); 
     25    function __construct($setPrevURL = true) { 
     26        parent::__construct($setPrevURL); 
     27    } 
     28 
     29    function init() { 
     30        parent::init(); 
     31 
    2732        $this->_smarty->template_dir = SMARTPHONE_TEMPLATE_REALDIR; 
    2833        $this->_smarty->compile_dir = SMARTPHONE_COMPILE_REALDIR; 
  • branches/version-2_12-dev/data/class/SC_View.php

    r21761 r21765  
    3131 
    3232    // コンストラクタ 
    33     function SC_View() { 
    34  
     33    function __construct() { 
     34        $this->init(); 
     35    } 
     36 
     37    function init() { 
    3538        $this->_smarty = new Smarty; 
    3639        $this->_smarty->left_delimiter = '<!--{'; 
Note: See TracChangeset for help on using the changeset viewer.