Ignore:
Timestamp:
2010/12/15 19:43:40 (13 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101215090611-0mqtkfcbju06ba0c
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php 16530@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_Best5.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php 17073@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_Calendar.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_Cart.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_Category.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_Login.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_News.php
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_SearchProducts.php
html/frontparts/bloc/best5.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Fbest5.php
html/frontparts/bloc/calendar.php 17073@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fhtml%2Ffrontparts%2Fbloc%2Fcalendar.php
html/frontparts/bloc/cart.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Fcart.php
html/frontparts/bloc/category.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Fcategory.php
html/frontparts/bloc/login.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Flogin.php
html/frontparts/bloc/news.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Fnews.php
html/frontparts/bloc/search_products.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Ffrontparts%2Fbloc%2Fsearch_products.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101215104336-pv2is7pqpilq04po
bzr:revno:
2455
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-12-15 19:43:36.924000025 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-12-15T10:43:36.924000Z
Message:
  • #787(スマートフォン対応)
    • 端末に応じてブロックを出力するよう修正
  • #832(SC_Helper_PageLayout#sfGetPageLayout の呼び出しに無駄が多い)
    • ブロックでは呼ばれないよう修正
Location:
branches/version-2_5-dev/data/class/pages/frontparts/bloc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php

    r18701 r19726  
    3333 */ 
    3434class LC_Page_FrontParts_Bloc extends LC_Page { 
     35 
     36    // TODO 
     37    function init() { 
     38        // 開始時刻を設定する。 
     39        $this->timeStart = SC_Utils_Ex::sfMicrotimeFloat(); 
     40 
     41        $this->tpl_authority = $_SESSION['authority']; 
     42 
     43        // ディスプレイクラス生成 
     44        $this->objDisplay = new SC_Display(); 
     45 
     46        // プラグインクラス生成 
     47        $this->objPlugin = new SC_Helper_Plugin_Ex(); 
     48        $this->objPlugin->preProcess($this); 
     49    } 
     50 
    3551    /** 
    3652     * ブロックファイルに応じて tpl_mainpage を設定する 
     
    4460            $this->tpl_mainpage = $bloc_file; 
    4561        } else { 
    46             $user_bloc_path = USER_TEMPLATE_PATH . TEMPLATE_NAME . "/" . BLOC_DIR . $bloc_file; 
     62            $user_bloc_path = SC_Helper_PageLayout_Ex::getTemplatePath($this->objDisplay->detectDevice(), true) . BLOC_DIR . $bloc_file; 
    4763            if (is_file($user_bloc_path)) { 
    4864                $this->tpl_mainpage = $user_bloc_path; 
    4965            } else { 
    50                 $this->tpl_mainpage = BLOC_PATH . $bloc_file; 
     66                $this->tpl_mainpage = SC_Helper_PageLayout_Ex::getTemplatePath($this->objDisplay->detectDevice()) . BLOC_DIR . $bloc_file; 
    5167            } 
    5268        } 
     69 
     70        $this->setTemplate($this->tpl_mainpage); 
    5371        $debug_message = "block:" . $this->tpl_mainpage . "\n"; 
    5472        GC_Utils::gfDebugLog($debug_message); 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php

    r19711 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'best5.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('best5.tpl'); 
    4847    } 
    4948 
     
    5453     */ 
    5554    function process() { 
    56         $objView = new SC_SiteView(false); 
    57         $objSiteInfo = $objView->objSiteInfo; 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
     58 
     59    /** 
     60     * Page のアクション. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5865 
    5966        // 基本情報を渡す 
     
    6370        //おすすめ商品表示 
    6471        $this->arrBestProducts = $this->lfGetRanking(); 
    65  
    66         if (!empty($this->arrBestProducts)) { 
    67             $objView->assignobj($this); 
    68             $objView->display($this->tpl_mainpage); 
    69         } 
    7072    } 
    7173 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php

    r19711 r19726  
    4747    function init() { 
    4848        parent::init(); 
    49         $bloc_file = 'calendar.tpl'; 
    50         $this->setTplMainpage($bloc_file); 
     49        $this->setTplMainpage('calendar.tpl'); 
    5150    } 
    5251 
     
    5756     */ 
    5857    function process() { 
    59         $objView = new SC_SiteView(false); 
     58        $this->action(); 
     59        $this->sendResponse(); 
     60    } 
    6061 
     62    /** 
     63     * Page のアクション. 
     64     * 
     65     * @return void 
     66     */ 
     67    function action() { 
    6168        // 休日取得取得 
    6269        $this->arrHoliday = $this->lfGetHoliday(); 
    63  
    6470        // 定休日取得取得 
    6571        $this->arrRegularHoliday = $this->lfGetRegularHoliday(); 
    66  
    6772        // カレンダーデータ取得 
    6873        $this->arrCalendar = $this->lfGetCalendar(2); 
    69  
    70         $objView->assignobj($this); 
    71         $objView->display($this->tpl_mainpage); 
    7274    } 
    7375 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php

    r18852 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'cart.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('cart.tpl'); 
    4847    } 
    4948 
     
    5453     */ 
    5554    function process() { 
    56         $objSubView = new SC_SiteView(false); 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
     58 
     59    /** 
     60     * Page のアクション. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5765        $objCart = new SC_CartSession(); 
    5866        $objSiteInfo = new SC_SiteInfo; 
     
    9098            $this->arrCartList = $arrCartList; 
    9199        } 
    92  
    93         $objSubView->assignobj($this); 
    94         $objSubView->display($this->tpl_mainpage); 
    95100    } 
    96101 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r18701 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'category.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('category.tpl'); 
    4847    } 
    4948 
     
    5453     */ 
    5554    function process() { 
    56         $objSubView = new SC_SiteView(false); 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
     58 
     59    /** 
     60     * Page のアクション. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5765        $objDb = new SC_Helper_DB_Ex(); 
    5866 
     
    6371        $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 
    6472        $this->lfGetCatTree($this->tpl_category_id, true, $this); 
    65  
    66         $objSubView->assignobj($this); 
    67         $objSubView->display($this->tpl_mainpage); 
    6873    } 
    6974 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php

    r19670 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'login.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('login.tpl'); 
    4847        $this->tpl_login = false; 
    4948        $this->tpl_disable_logout = false; 
     
    5756     */ 
    5857    function process() { 
     58        $this->action(); 
     59        $this->sendResponse(); 
     60    } 
     61 
     62    /** 
     63     * Page のアクション. 
     64     * 
     65     * @return void 
     66     */ 
     67    function action() { 
    5968        $objCustomer = new SC_Customer(); 
    6069        // クッキー管理クラス 
     
    8190 
    8291        $this->tpl_disable_logout = $this->lfCheckDisableLogout(); 
    83         $objSubView = new SC_SiteView(false); 
    8492        $this->transactionid = SC_Helper_Session_Ex::getToken(); 
    85         $objSubView->assignobj($this); 
    86         $objSubView->display($this->tpl_mainpage); 
    8793    } 
    8894 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r19711 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'news.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('news.tpl'); 
    4847    } 
    4948 
     
    5453     */ 
    5554    function process() { 
    56         $objSubView = new SC_SiteView(false); 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
    5758 
    58         //新着情報取得 
     59    /** 
     60     * Page のアクション. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5965        $this->arrNews = $this->lfGetNews(); 
    60  
    61         $objSubView->assignobj($this); 
    62         $objSubView->display($this->tpl_mainpage); 
    6366    } 
    6467 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php

    r18701 r19726  
    4444    function init() { 
    4545        parent::init(); 
    46         $bloc_file = 'search_products.tpl'; 
    47         $this->setTplMainpage($bloc_file); 
     46        $this->setTplMainpage('search_products.tpl'); 
    4847    } 
    4948 
     
    5453     */ 
    5554    function process() { 
     55        $this->action(); 
     56        $this->sendResponse(); 
     57    } 
     58 
     59    /** 
     60     * Page のアクション. 
     61     * 
     62     * @return void 
     63     */ 
     64    function action() { 
    5665        $arrSearch = array();   // 検索項目表示用 
    5766        $objDb = new SC_Helper_DB_Ex(); 
     
    8190        } 
    8291        $this->arrMakerList = $arrRet; 
    83  
    84         $objSubView = new SC_SiteView(false); 
    85         $objSubView->assignobj($this); 
    86         $objSubView->display($this->tpl_mainpage); 
    8792    } 
    8893 
Note: See TracChangeset for help on using the changeset viewer.