source: branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php @ 22569

Revision 22569, 2.5 KB checked in by pineray, 9 years ago (diff)

#2044 会員の削除に関する処理を統一する.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2013 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
25require_once CLASS_EX_REALDIR . 'page_extends/mypage/LC_Page_AbstractMypage_Ex.php';
26
27/**
28 * 退会手続き のページクラス.
29 *
30 * @package Page
31 * @author LOCKON CO.,LTD.
32 * @version $Id$
33 */
34class LC_Page_Mypage_Refusal extends LC_Page_AbstractMypage_Ex
35{
36
37    // }}}
38    // {{{ functions
39
40    /**
41     * Page を初期化する.
42     *
43     * @return void
44     */
45    function init()
46    {
47        parent::init();
48        $this->tpl_subtitle = '退会手続き(入力ページ)';
49        $this->tpl_mypageno = 'refusal';
50    }
51
52    /**
53     * Page のプロセス.
54     *
55     * @return void
56     */
57    function process()
58    {
59        parent::process();
60    }
61
62    /**
63     * Page のAction.
64     *
65     * @return void
66     */
67    function action()
68    {
69
70        switch ($this->getMode()) {
71            case 'confirm':
72                $this->tpl_mainpage     = 'mypage/refusal_confirm.tpl';
73                $this->tpl_subtitle     = '退会手続き(確認ページ)';
74                break;
75
76            case 'complete':
77                $objCustomer = new SC_Customer_Ex();
78                $this->lfDeleteCustomer($objCustomer->getValue('customer_id'));
79                $objCustomer->EndSession();
80
81
82                SC_Response_Ex::sendRedirect('refusal_complete.php');
83
84            default:
85                break;
86        }
87
88    }
89
90    /**
91     * デストラクタ.
92     *
93     * @return void
94     */
95    function destroy()
96    {
97        parent::destroy();
98    }
99
100    /**
101     * 会員情報を削除する
102     *
103     * @access private
104     * @return void
105     */
106    function lfDeleteCustomer($customer_id)
107    {
108        return SC_Helper_Customer_Ex::delete($customer_id);
109    }
110
111}
Note: See TracBrowser for help on using the repository browser.