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-2011 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_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
* EC-CUBEアプリケーション管理:アプリケーション設定 のページクラス.
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_OwnersStore_Settings.php 20970 2011-06-10 10:27:24Z Seasoft $
/** SC_FormParamのインスタンス */
/** リクエストパラメーターを格納する連想配列 */
/** バリデーションエラー情報を格納する連想配列 */
$this->tpl_mainpage = 'ownersstore/settings.tpl';
$this->tpl_mainno = 'ownersstore';
$this->tpl_subno = 'settings';
$this->tpl_maintitle = 'オーナーズストア';
$this->tpl_subtitle = '認証キー設定';
$this->httpCacheControl('nocache');
switch($this->getMode()) {
$arrForm = $this->objForm->getHashArray();
$this->tpl_onload = "alert('登録しました。')";
* SC_FormParamを初期化しメンバ変数にセットする.
if (isset ($_POST['public_key'])) {
$_POST['public_key'] = trim($_POST['public_key']);
$objForm = new SC_FormParam_Ex();
$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';
$objQuery = new SC_Query_Ex();
$count = $objQuery->count($table);
$objQuery->update($table, $arrSettingsData);
$objQuery->insert($table, $arrSettingsData);
$table = 'dtb_ownersstore_settings';
$objQuery = new SC_Query_Ex();
$arrRet = $objQuery->select($colmuns, $table);
if (isset ($arrRet[0])) return $arrRet[0];
Documentation generated on Fri, 24 Feb 2012 14:01:31 +0900 by Seasoft
|