Changeset 19726 for branches/version-2_5-dev/data/class/pages/frontparts
- Timestamp:
- 2010/12/15 19:43:40 (13 years ago)
- 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
- 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 33 33 */ 34 34 class 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 35 51 /** 36 52 * ブロックファイルに応じて tpl_mainpage を設定する … … 44 60 $this->tpl_mainpage = $bloc_file; 45 61 } 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; 47 63 if (is_file($user_bloc_path)) { 48 64 $this->tpl_mainpage = $user_bloc_path; 49 65 } 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; 51 67 } 52 68 } 69 70 $this->setTemplate($this->tpl_mainpage); 53 71 $debug_message = "block:" . $this->tpl_mainpage . "\n"; 54 72 GC_Utils::gfDebugLog($debug_message); -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php
r19711 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'best5.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('best5.tpl'); 48 47 } 49 48 … … 54 53 */ 55 54 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() { 58 65 59 66 // 基本情報を渡す … … 63 70 //おすすめ商品表示 64 71 $this->arrBestProducts = $this->lfGetRanking(); 65 66 if (!empty($this->arrBestProducts)) {67 $objView->assignobj($this);68 $objView->display($this->tpl_mainpage);69 }70 72 } 71 73 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php
r19711 r19726 47 47 function init() { 48 48 parent::init(); 49 $bloc_file = 'calendar.tpl'; 50 $this->setTplMainpage($bloc_file); 49 $this->setTplMainpage('calendar.tpl'); 51 50 } 52 51 … … 57 56 */ 58 57 function process() { 59 $objView = new SC_SiteView(false); 58 $this->action(); 59 $this->sendResponse(); 60 } 60 61 62 /** 63 * Page のアクション. 64 * 65 * @return void 66 */ 67 function action() { 61 68 // 休日取得取得 62 69 $this->arrHoliday = $this->lfGetHoliday(); 63 64 70 // 定休日取得取得 65 71 $this->arrRegularHoliday = $this->lfGetRegularHoliday(); 66 67 72 // カレンダーデータ取得 68 73 $this->arrCalendar = $this->lfGetCalendar(2); 69 70 $objView->assignobj($this);71 $objView->display($this->tpl_mainpage);72 74 } 73 75 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php
r18852 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'cart.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('cart.tpl'); 48 47 } 49 48 … … 54 53 */ 55 54 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() { 57 65 $objCart = new SC_CartSession(); 58 66 $objSiteInfo = new SC_SiteInfo; … … 90 98 $this->arrCartList = $arrCartList; 91 99 } 92 93 $objSubView->assignobj($this);94 $objSubView->display($this->tpl_mainpage);95 100 } 96 101 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r18701 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'category.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('category.tpl'); 48 47 } 49 48 … … 54 53 */ 55 54 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() { 57 65 $objDb = new SC_Helper_DB_Ex(); 58 66 … … 63 71 $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 64 72 $this->lfGetCatTree($this->tpl_category_id, true, $this); 65 66 $objSubView->assignobj($this);67 $objSubView->display($this->tpl_mainpage);68 73 } 69 74 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php
r19670 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'login.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('login.tpl'); 48 47 $this->tpl_login = false; 49 48 $this->tpl_disable_logout = false; … … 57 56 */ 58 57 function process() { 58 $this->action(); 59 $this->sendResponse(); 60 } 61 62 /** 63 * Page のアクション. 64 * 65 * @return void 66 */ 67 function action() { 59 68 $objCustomer = new SC_Customer(); 60 69 // クッキー管理クラス … … 81 90 82 91 $this->tpl_disable_logout = $this->lfCheckDisableLogout(); 83 $objSubView = new SC_SiteView(false);84 92 $this->transactionid = SC_Helper_Session_Ex::getToken(); 85 $objSubView->assignobj($this);86 $objSubView->display($this->tpl_mainpage);87 93 } 88 94 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
r19711 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'news.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('news.tpl'); 48 47 } 49 48 … … 54 53 */ 55 54 function process() { 56 $objSubView = new SC_SiteView(false); 55 $this->action(); 56 $this->sendResponse(); 57 } 57 58 58 //新着情報取得 59 /** 60 * Page のアクション. 61 * 62 * @return void 63 */ 64 function action() { 59 65 $this->arrNews = $this->lfGetNews(); 60 61 $objSubView->assignobj($this);62 $objSubView->display($this->tpl_mainpage);63 66 } 64 67 -
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php
r18701 r19726 44 44 function init() { 45 45 parent::init(); 46 $bloc_file = 'search_products.tpl'; 47 $this->setTplMainpage($bloc_file); 46 $this->setTplMainpage('search_products.tpl'); 48 47 } 49 48 … … 54 53 */ 55 54 function process() { 55 $this->action(); 56 $this->sendResponse(); 57 } 58 59 /** 60 * Page のアクション. 61 * 62 * @return void 63 */ 64 function action() { 56 65 $arrSearch = array(); // 検索項目表示用 57 66 $objDb = new SC_Helper_DB_Ex(); … … 81 90 } 82 91 $this->arrMakerList = $arrRet; 83 84 $objSubView = new SC_SiteView(false);85 $objSubView->assignobj($this);86 $objSubView->display($this->tpl_mainpage);87 92 } 88 93
Note: See TracChangeset
for help on using the changeset viewer.