| 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 |
---|
| 25 | require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php'; |
---|
| 26 | |
---|
| 27 | /** |
---|
| 28 | * サイト概要のページクラス. |
---|
| 29 | * |
---|
| 30 | * @package Page |
---|
| 31 | * @author LOCKON CO.,LTD. |
---|
| 32 | * @version $Id:LC_Page_Abouts.php 15532 2007-08-31 14:39:46Z nanasess $ |
---|
| 33 | */ |
---|
| 34 | class LC_Page_Abouts extends LC_Page_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_page_category = 'abouts'; |
---|
| 49 | $this->tpl_title = '当サイトについて'; |
---|
| 50 | $masterData = new SC_DB_MasterData_Ex(); |
---|
| 51 | $this->arrPref = $masterData->getMasterData('mtb_pref'); |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | /** |
---|
| 55 | * Page のプロセス. |
---|
| 56 | * |
---|
| 57 | * @return void |
---|
| 58 | */ |
---|
| 59 | function process() |
---|
| 60 | { |
---|
| 61 | parent::process(); |
---|
| 62 | $this->action(); |
---|
| 63 | $this->sendResponse(); |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | /** |
---|
| 67 | * Page のアクション. |
---|
| 68 | * |
---|
| 69 | * @return void |
---|
| 70 | */ |
---|
| 71 | function action() |
---|
| 72 | { |
---|
| 73 | |
---|
| 74 | $this->objSiteInfo->data = SC_Helper_DB_Ex::sfGetBasisData(); |
---|
| 75 | $this->objSiteInfo->data['pref'] = |
---|
| 76 | isset($this->arrPref[$this->objSiteInfo->data['pref']]) |
---|
| 77 | ? $this->arrPref[$this->objSiteInfo->data['pref']] : ''; |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | } |
---|
| 81 | |
---|
| 82 | /** |
---|
| 83 | * デストラクタ. |
---|
| 84 | * |
---|
| 85 | * @return void |
---|
| 86 | */ |
---|
| 87 | function destroy() |
---|
| 88 | { |
---|
| 89 | parent::destroy(); |
---|
| 90 | } |
---|
| 91 | } |
---|