Ignore:
Timestamp:
2013/08/26 15:52:37 (11 years ago)
Author:
m_uehara
Message:

#2348 r23116 - r23125 をマージ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_0/data/class/pages/admin/basis/LC_Page_Admin_Basis.php

    r22999 r23126  
    3838     * @return void 
    3939     */ 
    40     function init() 
     40    public function init() 
    4141    { 
    4242        parent::init(); 
     
    6565     * @return void 
    6666     */ 
    67     function process() 
     67    public function process() 
    6868    { 
    6969        $this->action(); 
     
    7676     * @return void 
    7777     */ 
    78     function action() 
     78    public function action() 
    7979    { 
    8080        $objDb = new SC_Helper_DB_Ex(); 
     
    8787        $this->tpl_onload = "fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '" . DISABLED_RGB . "');"; 
    8888 
    89         switch($this->getMode()){ 
    90             case 'confirm': 
    91                 $this->arrErr = $this->lfCheckError($objFormParam); 
    92                 if (!empty($this->arrErr)) { 
    93                     return; 
    94                 } 
    95                 $this->tpl_subtitle = 'SHOPマスター(確認)'; 
    96                 $this->tpl_mainpage = 'basis/confirm.tpl'; 
    97                 break; 
    98  
    99             case 'return': 
    100                 break; 
    101  
    102             case 'complete': 
    103                 $arrData = $objFormParam->getDbArray(); 
    104                 SC_Helper_DB_Ex::registerBasisData($arrData); 
    105  
    106                 // キャッシュファイル更新 
    107                 $objDb->sfCreateBasisDataCache(); 
    108                 $this->tpl_onload .= "window.alert('SHOPマスターの登録が完了しました。');"; 
    109             // breakはつけない 
     89        switch ($this->getMode()) { 
     90            case 'confirm': 
     91                $this->arrErr = $this->lfCheckError($objFormParam); 
     92                if (!empty($this->arrErr)) { 
     93                    return; 
     94                } 
     95                $this->tpl_subtitle = 'SHOPマスター(確認)'; 
     96                $this->tpl_mainpage = 'basis/confirm.tpl'; 
     97                break; 
     98 
     99            case 'return': 
     100                break; 
     101 
     102            case 'complete': 
     103                $arrData = $objFormParam->getDbArray(); 
     104                SC_Helper_DB_Ex::registerBasisData($arrData); 
     105 
     106                // キャッシュファイル更新 
     107                $objDb->sfCreateBasisDataCache(); 
     108                $this->tpl_onload .= "window.alert('SHOPマスターの登録が完了しました。');"; 
     109            // breakはつけない 
    110110            default: 
    111                 $arrRet = $objDb->sfGetBasisData(true); 
    112                 $objFormParam->setParam($arrRet); 
    113                 $this->arrForm = $objFormParam->getHashArray(); 
    114                 $this->arrForm['regular_holiday_ids'] = explode('|', $this->arrForm['regular_holiday_ids']); 
    115                 break; 
     111                $arrRet = $objDb->sfGetBasisData(true); 
     112                $objFormParam->setParam($arrRet); 
     113                $this->arrForm = $objFormParam->getHashArray(); 
     114                $this->arrForm['regular_holiday_ids'] = explode('|', $this->arrForm['regular_holiday_ids']); 
     115                break; 
    116116        } 
    117117    } 
     
    122122     * @deprecated 2.12.4 
    123123     */ 
    124     function lfUpdateData($arrData) 
     124    public function lfUpdateData($arrData) 
    125125    { 
    126126        trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); 
     
    133133     * @deprecated 2.12.4 
    134134     */ 
    135     function lfInsertData($arrData) 
     135    public function lfInsertData($arrData) 
    136136    { 
    137137        trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); 
     
    139139    } 
    140140 
    141     function lfInitParam(&$objFormParam, $post) 
     141    public function lfInitParam(&$objFormParam, $post) 
    142142    { 
    143143        $objFormParam->addParam('会社名', 'company_name', STEXT_LEN, 'KVa',  array('MAX_LENGTH_CHECK')); 
     
    189189 
    190190    // 入力エラーチェック 
    191     function lfCheckError(&$objFormParam) 
     191    public function lfCheckError(&$objFormParam) 
    192192    { 
    193193        $arrErr = $objFormParam->checkError(); 
     
    201201        $objErr->doFunc(array('FAX', 'fax01', 'fax02', 'fax03'), array('TEL_CHECK')); 
    202202 
    203         return array_merge((array)$arrErr, (array)$objErr->arrErr); 
     203        return array_merge((array) $arrErr, (array) $objErr->arrErr); 
    204204    } 
    205205} 
Note: See TracChangeset for help on using the changeset viewer.