Page
[ class tree: Page ] [ index: Page ] [ all elements ]

Source for file LC_Page_Mypage_ChangeComplete.php

Documentation is available at LC_Page_Mypage_ChangeComplete.php

  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.lockon.co.jp/
  8.  *
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License
  11.  * as published by the Free Software Foundation; either version 2
  12.  * of the License, or (at your option) any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  22.  */
  23.  
  24. // {{{ requires
  25. require_once(CLASS_PATH "pages/LC_Page.php");
  26.  
  27. /**
  28.  * 登録内容変更完了 のページクラス.
  29.  *
  30.  * @package Page
  31.  * @author LOCKON CO.,LTD.
  32.  * @version $Id: LC_Page_Mypage_ChangeComplete.php 18734 2010-06-22 08:45:33Z nanasess $
  33.  */
  34.  
  35.     // }}}
  36.     // {{{ functions
  37.  
  38.     /**
  39.      * Page を初期化する.
  40.      *
  41.      * @return void 
  42.      */
  43.     function init({
  44.         parent::init();
  45.         $this->tpl_mainpage = TEMPLATE_DIR 'mypage/change_complete.tpl';
  46.         $this->tpl_title = 'MYページ/会員登録内容変更(完了ページ)';
  47.         $this->tpl_navi TEMPLATE_DIR 'mypage/navi.tpl';
  48.         $this->tpl_mypageno 'change';
  49.         $this->tpl_column_num = 1;
  50.     }
  51.  
  52.     /**
  53.      * Page のプロセス.
  54.      *
  55.      * @return void 
  56.      */
  57.     function process({
  58.         $objView new SC_SiteView();
  59.         $objCustomer new SC_Customer();
  60.  
  61.         // レイアウトデザインを取得
  62.         $objLayout new SC_Helper_PageLayout_Ex();
  63.         $objLayout->sfGetPageLayout($thisfalse"mypage/index.php");
  64.  
  65.         //ログイン判定
  66.         if (!$objCustomer->isLoginSuccess()){
  67.             SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
  68.         else {
  69.             //マイページトップ顧客情報表示用
  70.             $this->CustomerName1 $objCustomer->getvalue('name01');
  71.             $this->CustomerName2 $objCustomer->getvalue('name02');
  72.             $this->CustomerPoint $objCustomer->getvalue('point');
  73.         }
  74.  
  75.         $objView->assignobj($this);
  76.         $objView->display(SITE_FRAME);
  77.     }
  78.  
  79.     /**
  80.      * モバイルページを初期化する.
  81.      *
  82.      * @return void 
  83.      */
  84.     function mobileInit({
  85.         $this->tpl_mainpage = 'mypage/change_complete.tpl';
  86.         $this->tpl_title = 'MYページ/会員登録内容変更(完了ページ)';
  87.     }
  88.  
  89.     /**
  90.      * Page のプロセス(モバイル).
  91.      *
  92.      * @return void 
  93.      */
  94.     function mobileProcess({
  95.         $objView new SC_MobileView();
  96.         $objCustomer new SC_Customer();
  97.  
  98.  
  99.         //セッション情報を最新の状態に更新する
  100.         $objCustomer->updateSession();
  101.  
  102.         //ログイン判定
  103.         if (!$objCustomer->isLoginSuccess(true)){
  104.             SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR""false""true);
  105.         }else {
  106.             //マイページトップ顧客情報表示用
  107.             $this->CustomerName1 $objCustomer->getvalue('name01');
  108.             $this->CustomerName2 $objCustomer->getvalue('name02');
  109.             $this->CustomerPoint $objCustomer->getvalue('point');
  110.         }
  111.  
  112.         $objView->assignobj($this);
  113.         $objView->display(SITE_FRAME);
  114.     }
  115.  
  116.     /**
  117.      * デストラクタ.
  118.      *
  119.      * @return void 
  120.      */
  121.     function destroy({
  122.         parent::destroy();
  123.     }
  124. }
  125. ?>

Documentation generated on Fri, 24 Feb 2012 13:59:34 +0900 by Seasoft