Changeset 20300 for branches/version-2_5-dev/data
- Timestamp:
- 2011/02/21 18:35:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Control.php
r20270 r20300 75 75 SC_Utils_Ex::sfIsSuccess($objSess); 76 76 77 // パラメータ管理クラス 78 $this->objFormParam = new SC_FormParam(); 79 // パラメータ情報の初期化 80 $this->lfInitParam(); 81 // POST値の取得 82 $this->objFormParam->setParam($_POST); 77 $objFormParam = new SC_FormParam(); 78 $this->lfInitParam($objFormParam); 79 $objFormParam->setParam($_POST); 83 80 84 81 switch($this->getMode()) { 85 82 case 'edit': 86 83 // 入力値の変換 87 $ this->objFormParam->convParam();84 $objFormParam->convParam(); 88 85 89 86 // エラーチェック 90 87 $this->arrErr = $this->lfCheckError(); 91 88 if(count($this->arrErr) == 0) { 92 $this->lfSiteControlData($_POST['control_id'] );89 $this->lfSiteControlData($_POST['control_id'], $objFormParam->getHashArray()); 93 90 // javascript実行 94 91 $this->tpl_onload = "alert('更新が完了しました。');"; … … 140 137 141 138 /* パラメータ情報の初期化 */ 142 function lfInitParam( ) {143 $ this->objFormParam->addParam("設定状況", "control_flg", INT_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));139 function lfInitParam(&$objFormParam) { 140 $objFormParam->addParam("設定状況", "control_flg", INT_LEN, "n", array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 144 141 } 145 142 146 143 /* 入力内容のチェック */ 147 function lfCheckError( ) {144 function lfCheckError(&$objFormParam) { 148 145 // 入力データを渡す。 149 $arrRet = $ this->objFormParam->getHashArray();146 $arrRet = $objFormParam->getHashArray(); 150 147 $objErr = new SC_CheckError($arrRet); 151 $objErr->arrErr = $ this->objFormParam->checkError();148 $objErr->arrErr = $objFormParam->checkError(); 152 149 153 150 return $objErr->arrErr; … … 155 152 156 153 /* DBへデータを登録する */ 157 function lfSiteControlData($control_id = "" ) {154 function lfSiteControlData($control_id = "", $post) { 158 155 $objQuery =& SC_Query::getSingletonInstance(); 159 $sqlval = $ this->objFormParam->getHashArray();156 $sqlval = $post; 160 157 $sqlval['update_date'] = 'Now()'; 161 158 … … 163 160 if($control_id == "") { 164 161 // INSERTの実行 165 //$sqlval['creator_id'] = $_SESSION['member_id'];166 162 $sqlval['create_date'] = 'Now()'; 167 163 $objQuery->nextVal("dtb_site_control_control_id");
Note: See TracChangeset
for help on using the changeset viewer.