Changeset 16530 for branches


Ignore:
Timestamp:
2007/10/22 10:25:13 (16 years ago)
Author:
nanasess
Message:

リファクタリング

Location:
branches/feature-module-update/data/class/pages/frontparts/bloc
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_Best5.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_Best5 extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_Best5 extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'best5.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632    } 
    3733 
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_Cart.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_Cart extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_Cart extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'cart.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632    } 
    3733 
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_Category.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_Category extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_Category extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'category.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632    } 
    3733 
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_Login.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_Login extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_Login extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'login.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632        $this->tpl_login = false; 
    3733        $this->tpl_disable_logout = false; 
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_News.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_News extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_News extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'news.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632    } 
    3733 
  • branches/feature-module-update/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php

    r16275 r16530  
    77 
    88// {{{ requires 
    9 require_once(CLASS_PATH . "pages/LC_Page.php"); 
     9require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php"); 
    1010 
    1111/** 
     
    1616 * @version $Id:LC_Page_FrontParts_Bloc_SearchProducts.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    18 class LC_Page_FrontParts_Bloc_SearchProducts extends LC_Page { 
     18class LC_Page_FrontParts_Bloc_SearchProducts extends LC_Page_FrontParts_Bloc { 
    1919 
    2020    // }}} 
     
    2929        parent::init(); 
    3030        $bloc_file = 'search_products.tpl'; 
    31         if (is_file(USER_PATH . BLOC_DIR . $bloc_file)) { 
    32             $this->tpl_mainpage = USER_PATH . BLOC_DIR . $bloc_file; 
    33         } else { 
    34             $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
    35         } 
     31        $this->setTplMainpage($bloc_file); 
    3632    } 
    3733 
Note: See TracChangeset for help on using the changeset viewer.