Source for file LC_Page_Admin_System_Parameter.php
Documentation is available at LC_Page_Admin_System_Parameter.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");
* @author LOCKON CO.,LTD.
$this->tpl_subnavi =
'system/subnavi.tpl';
$this->tpl_subno =
'parameter';
$this->tpl_subtitle =
'パラメータ設定';
$this->arrKeys =
$this->getParamKeys($masterData);
if (isset
($_POST["mode"]) &&
$_POST["mode"] ==
"update") {
$this->arrErr =
$this->errorCheck();
if (empty($this->arrErr)) {
$this->tpl_onload =
"window.alert('パラメータの設定が完了しました。');";
$this->tpl_onload =
"window.alert('エラーが発生しました。入力内容をご確認下さい。');";
if (empty($this->arrErr)) {
$masterData->getDBMasterData("mtb_constants"));
$masterData->getDBMasterData("mtb_constants",
array("id", "remarks", "rank")));
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
* 画面の設定値で mtb_constants テーブルの値とキャッシュを更新する.
$data[$key] =
$_POST[$key];
$masterData->updateMasterData("mtb_constants", array(), $data);
$mtb_constants =
$masterData->getDBMasterData("mtb_constants");
$masterData->clearCache("mtb_constants");
$masterData->createCache("mtb_constants", $mtb_constants, true,
array("id", "remarks", "rank"));
$objErr->doFunc(array($this->arrKeys[$i],
$this->arrForm[$this->arrKeys[$i]]),
array("EXIST_CHECK_REVERSE", "EVAL_CHECK"));
* @return array パラメータのキーの配列
function getParamKeys(&$masterData) {
foreach ($masterData->getDBMasterData("mtb_constants") as $key =>
$val) {
Documentation generated on Tue, 28 Apr 2009 18:11:53 +0900 by phpDocumentor 1.4.2