Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_FormParam.php

    r21480 r21514  
    6666 
    6767    // パラメーターの追加 
    68     function addParam($disp_name, $keyname, $length = "", $convert = "", $arrCheck = array(), $default = "", $input_db = 'true') { 
     68    function addParam($disp_name, $keyname, $length = '', $convert = '', $arrCheck = array(), $default = "", $input_db = 'true') { 
    6969        $this->disp_name[] = $disp_name; 
    7070        $this->keyname[] = $keyname; 
     
    111111                $this->html_disp_name[$cnt] = $this->disp_name[$cnt]; 
    112112            } 
    113             if ($this->default[$cnt] != "") { 
     113            if ($this->default[$cnt] != '') { 
    114114                $this->html_disp_name[$cnt] .= ' [省略時初期値: ' . $this->default[$cnt] . ']'; 
    115115            } 
     
    133133        for ($cnt = 0; $cnt < $count; $cnt++) { 
    134134            $key = $keyname.$no; 
    135             if ($arrVal[$cnt][$keyname] != "") { 
     135            if ($arrVal[$cnt][$keyname] != '') { 
    136136                $this->setValue($key, $arrVal[$cnt][$keyname]); 
    137137            } 
     
    143143 
    144144        if (!empty($db_date)) { 
    145             list($y, $m, $d) = preg_split("/[- ]/", $db_date); 
     145            list($y, $m, $d) = preg_split('/[- ]/', $db_date); 
    146146            $this->setValue($year_key, $y); 
    147147            $this->setValue($month_key, $m); 
     
    180180        foreach ($this->keyname as $val) { 
    181181            foreach ($this->arrCheck[$cnt] as $func) { 
    182                 if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
     182                if (!isset($this->param[$cnt])) $this->param[$cnt] = ''; 
    183183                switch ($func) { 
    184184                case 'EXIST_CHECK': 
     
    217217                // ファイルの存在チェック 
    218218                case 'FILE_EXISTS': 
    219                     if ($this->param[$cnt] != "" && !file_exists($this->check_dir . $this->param[$cnt])) { 
    220                         $objErr->arrErr[$val] = "※ " . $this->disp_name[$cnt] . "のファイルが存在しません。<br>"; 
     219                    if ($this->param[$cnt] != '' && !file_exists($this->check_dir . $this->param[$cnt])) { 
     220                        $objErr->arrErr[$val] = '※ ' . $this->disp_name[$cnt] . 'のファイルが存在しません。<br>'; 
    221221                    } 
    222222                    break; 
    223223                // ダウンロード用ファイルの存在チェック 
    224224                case 'DOWN_FILE_EXISTS': 
    225                     if ($this->param[$cnt] != "" && !file_exists(DOWN_SAVE_REALDIR . $this->param[$cnt])) { 
    226                         $objErr->arrErr[$val] = "※ " . $this->disp_name[$cnt] . "のファイルが存在しません。<br>"; 
     225                    if ($this->param[$cnt] != '' && !file_exists(DOWN_SAVE_REALDIR . $this->param[$cnt])) { 
     226                        $objErr->arrErr[$val] = '※ ' . $this->disp_name[$cnt] . 'のファイルが存在しません。<br>'; 
    227227                    } 
    228228                    break; 
     
    295295        $cnt = 0; 
    296296        foreach ($this->keyname as $val) { 
    297             if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
     297            if (!isset($this->param[$cnt])) $this->param[$cnt] = ''; 
    298298            $this->recursionConvParam($this->param[$cnt], $this->convert[$cnt]); 
    299299            $cnt++; 
     
    340340        foreach ($this->keyname as $val) { 
    341341            if ($this->input_db[$cnt]) { 
    342                 $arrRet[$val] = isset($this->param[$cnt]) ? $this->param[$cnt] : ""; 
     342                $arrRet[$val] = isset($this->param[$cnt]) ? $this->param[$cnt] : ''; 
    343343            } 
    344344            $cnt++; 
     
    383383            } 
    384384 
    385             if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
    386  
    387             if ($this->default[$cnt] != "" && $this->param[$cnt] == "") { 
     385            if (!isset($this->param[$cnt])) $this->param[$cnt] = ''; 
     386 
     387            if ($this->default[$cnt] != '' && $this->param[$cnt] == '') { 
    388388                $arrRet[$val]['value'] = $this->default[$cnt]; 
    389389            } 
     
    409409        foreach ($this->keyname as $val) { 
    410410            if ($val == $keyname) { 
    411                 $ret = isset($this->param[$cnt]) ? $this->param[$cnt] : ""; 
     411                $ret = isset($this->param[$cnt]) ? $this->param[$cnt] : ''; 
    412412                break; 
    413413            } 
     
    437437            if ($val == $keyname) { 
    438438                if (isset($this->param[$cnt]) && !is_array($this->param[$cnt])) { 
    439                     $this->param[$cnt] = explode("-", $this->param[$cnt]); 
     439                    $this->param[$cnt] = explode('-', $this->param[$cnt]); 
    440440                } 
    441441            } 
     
    453453        $cnt = 0; 
    454454        foreach ($this->keyname as $val) { 
    455             if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
     455            if (!isset($this->param[$cnt])) $this->param[$cnt] = ''; 
    456456            $this->recursionTrim($this->param[$cnt], $has_wide_space); 
    457457            $cnt++; 
     
    496496            if (preg_match('/^' . $prefix . '/', $key)) { 
    497497                $arrResults[$key] = isset($this->param[$cnt]) 
    498                     ? $this->param[$cnt] : ""; 
     498                    ? $this->param[$cnt] : ''; 
    499499            } 
    500500            $cnt++; 
     
    519519            } 
    520520 
    521             if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
    522  
    523             if ($this->default[$cnt] != "" && $this->param[$cnt] == "") { 
     521            if (!isset($this->param[$cnt])) $this->param[$cnt] = ''; 
     522 
     523            if ($this->default[$cnt] != '' && $this->param[$cnt] == '') { 
    524524                $arrRet[$cnt]['value'] = $this->default[$cnt]; 
    525525            } 
Note: See TracChangeset for help on using the changeset viewer.