Source for file LC_Page_Admin_OwnersStore_Settings.php
Documentation is available at LC_Page_Admin_OwnersStore_Settings.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
* EC-CUBEアプリケーション管理:アプリケーション設定 のページクラス.
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_OwnersStore_Settings.php 17423 2008-07-11 16:48:04Z Seasoft $
/** SC_FormParamのインスタンス */
/** リクエストパラメータを格納する連想配列 */
/** バリデーションエラー情報を格納する連想配列 */
$this->tpl_subno =
'settings';
$this->tpl_subtitle =
'認証キー設定';
// $_POST['mode']によってアクション振り分け
$objView->assignObj($this);
$objView->display(MAIN_FRAME);
* switchアクション振り分け用パラメータを取得する.
if ($_SERVER['REQUEST_METHOD'] ==
'GET') {
if (isset
($_GET['mode'])) $mode =
$_GET['mode'];
} elseif ($_SERVER['REQUEST_METHOD'] ==
'POST') {
if (isset
($_POST['mode'])) $mode =
$_POST['mode'];
$arrForm =
$this->objForm->getHashArray();
* SC_FormParamを初期化しメンバ変数にセットする.
if (isset
($_POST['public_key'])) {
$_POST['public_key'] =
trim($_POST['public_key']);
$objForm->addParam('認証キー', 'public_key', LTEXT_LEN, '', array('EXIST_CHECK', 'ALNUM_CHECK', 'MAX_LENGTH_CHECK'));
$objForm->setParam($_POST);
* registerアクションのパラメータを検証する.
* @return array エラー情報を格納した連想配列
return $this->objForm->checkError();
* @param array $arrSettingsData オーナーズストア設定の連想配列
$table =
'dtb_ownersstore_settings';
$count =
$objQuery->count($table);
$objQuery->update($table, $arrSettingsData);
$objQuery->insert($table, $arrSettingsData);
$table =
'dtb_ownersstore_settings';
$arrRet =
$objQuery->select($colmuns, $table);
if (isset
($arrRet[0])) return $arrRet[0];
Documentation generated on Tue, 28 Apr 2009 18:11:30 +0900 by phpDocumentor 1.4.2