Ignore:
Timestamp:
2011/02/23 00:36:32 (13 years ago)
Author:
homan
Message:

#974 [管理画面]システム設定 パラメータ設定コミット

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/system/LC_Page_Admin_System_Parameter.php

    r20116 r20331  
    7878     */ 
    7979    function action() { 
    80         $masterData = new SC_DB_MasterData_Ex(); 
    8180 
    8281        // 認証可否の判定 
    8382        SC_Utils_Ex::sfIsSuccess(new SC_Session()); 
     83 
     84        $masterData = new SC_DB_MasterData_Ex(); 
    8485 
    8586        // キーの配列を生成 
     
    9293 
    9394            // エラーチェック 
    94             $this->arrErr = $this->errorCheck(); 
     95            $this->arrErr = $this->errorCheck($this->arrKeys, $this->arrForm); 
    9596            // エラーの無い場合は update 
    9697            if (empty($this->arrErr)) { 
    97                 $this->update(); 
     98                $this->update($this->arrKeys, $this->arrForm); 
    9899                $this->tpl_onload = "window.alert('パラメータの設定が完了しました。');"; 
    99100            } else { 
     
    136137     * @return void 
    137138     */ 
    138     function update() { 
     139    function update(&$arrKeys, &$arrForm) { 
    139140        $data = array(); 
    140141        $masterData = new SC_DB_MasterData_Ex(); 
    141         foreach ($this->arrKeys as $key) { 
    142             $data[$key] = $_POST[$key]; 
     142        foreach ($arrKeys as $key) { 
     143            $data[$key] = $arrForm[$key]; 
    143144        } 
    144145 
     
    154155     * 
    155156     * @access private 
     157     * @param array $arrForm $_POST 値 
    156158     * @return void 
    157159     */ 
    158     function errorCheck() { 
    159         $objErr = new SC_CheckError($this->arrForm); 
    160         for ($i = 0; $i < count($this->arrKeys); $i++) { 
    161             $objErr->doFunc(array($this->arrKeys[$i], 
    162                                   $this->arrForm[$this->arrKeys[$i]]), 
     160    function errorCheck(&$arrKeys, &$arrForm) { 
     161        $objErr = new SC_CheckError($arrForm); 
     162        for ($i = 0; $i < count($arrKeys); $i++) { 
     163            $objErr->doFunc(array($arrKeys[$i], 
     164                                  $arrForm[$arrKeys[$i]]), 
    163165                            array("EXIST_CHECK_REVERSE", "EVAL_CHECK")); 
    164166        } 
Note: See TracChangeset for help on using the changeset viewer.