Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22567 r22796  
    3030 * @author LOCKON CO.,LTD. 
    3131 */ 
    32 class SC_FormParam  
    33 { 
     32class SC_FormParam { 
    3433 
    3534    /** 
     
    6362     * コンストラクタ 
    6463     */ 
    65     function __construct() 
    66     { 
     64    function __construct() { 
    6765        $this->check_dir = IMAGE_SAVE_REALDIR; 
    6866 
     
    8482     * @deprecated 2.12.0 #1702 
    8583     */ 
    86     function initParam() 
    87     { 
     84    function initParam() { 
    8885        $this->disp_name = array(); 
    8986        $this->keyname = array(); 
     
    9693 
    9794    // パラメーターの追加 
    98     function addParam($disp_name, $keyname, $length = '', $convert = '', $arrCheck = array(), $default = '', $input_db = true) 
    99     { 
     95    function addParam($disp_name, $keyname, $length = '', $convert = '', $arrCheck = array(), $default = '', $input_db = true) { 
    10096        $this->disp_name[] = $disp_name; 
    10197        $this->keyname[] = $keyname; 
     
    111107    // $arrVal  :$arrVal['keyname']・・の配列を一致したキーのインスタンスに格納する 
    112108    // $seq     :trueの場合、$arrVal[0]~の配列を登録順にインスタンスに格納する 
    113     function setParam($arrVal, $seq = false) 
    114     { 
     109    function setParam($arrVal, $seq = false) { 
    115110        if (!is_array($arrVal)) return; 
    116111        if (!$seq) { 
     
    126121 
    127122    // 画面表示用タイトル生成 
    128     function setHtmlDispNameArray() 
    129     { 
     123    function setHtmlDispNameArray() { 
    130124        foreach ($this->keyname as $index => $key) { 
    131125            $find = false; 
     
    151145 
    152146    // 画面表示用タイトル取得 
    153     function getHtmlDispNameArray() 
    154     { 
     147    function getHtmlDispNameArray() { 
    155148        return $this->html_disp_name; 
    156149    } 
    157150 
    158151    // 複数列パラメーターの取得 
    159     function setParamList($arrVal2d, $keyname) 
    160     { 
     152    function setParamList($arrVal2d, $keyname) { 
    161153        // DBの件数を取得する。 
    162154        $no = 1; 
     
    168160    } 
    169161 
    170     function setDBDate($db_date, $year_key = 'year', $month_key = 'month', $day_key = 'day') 
    171     { 
     162    function setDBDate($db_date, $year_key = 'year', $month_key = 'month', $day_key = 'day') { 
    172163        if (empty($db_date)) { 
    173164            return; 
     
    180171 
    181172    // キーに対応した値をセットする。 
    182     function setValue($key, $value) 
    183     { 
     173    function setValue($key, $value) { 
    184174        if (!in_array($key, $this->keyname)) { 
    185175            // TODO 警告発生 
     
    189179    } 
    190180 
    191     function toLower($key) 
    192     { 
     181    function toLower($key) { 
    193182        if (isset($this->arrValue[$key])) { 
    194183            $this->arrValue[$key] = strtolower($this->arrValue[$key]); 
     
    197186 
    198187    // エラーチェック 
    199     function checkError($br = true) 
    200     { 
     188    function checkError($br = true) { 
    201189        $arrErr = array(); 
    202190 
     
    230218                    case 'SELECT_CHECK': 
    231219                    case 'FILE_NAME_CHECK_BY_NOUPLOAD': 
    232                     case 'NUM_POINT_CHECK': 
    233220                        $this->recursionCheck($this->disp_name[$index], $func, 
    234221                            $value, $arrErr, $key, $this->length[$index]); 
     
    315302     * @see mb_convert_kana 
    316303     */ 
    317     function convParam() 
    318     { 
     304    function convParam() { 
    319305        foreach ($this->keyname as $index => $key) { 
    320306            if (isset($this->arrValue[$key])) { 
     
    330316     * @param string $convert mb_convert_kana の変換オプション 
    331317     */ 
    332     function recursionConvParam(&$value, $convert) 
    333     { 
     318    function recursionConvParam(&$value, $convert) { 
    334319        if (is_array($value)) { 
    335320            foreach ($value as $key => $val) { 
     
    349334     * @return array 連想配列 
    350335     */ 
    351     function getHashArray($arrKey = array()) 
    352     { 
     336    function getHashArray($arrKey = array()) { 
    353337        $arrRet = array(); 
    354338        foreach ($this->keyname as $keyname) { 
     
    361345 
    362346    // DB格納用配列の作成 
    363     function getDbArray() 
    364     { 
     347    function getDbArray() { 
    365348        $dbArray = array(); 
    366349        foreach ($this->keyname as $index => $key) { 
     
    378361     * @return array 縦横を入れ替えた配列 
    379362     */ 
    380     function getSwapArray($arrKey = array()) 
    381     { 
     363    function getSwapArray($arrKey = array()) { 
    382364        $arrTmp = $this->getHashArray($arrKey); 
    383365        return SC_Utils_Ex::sfSwapArray($arrTmp); 
     
    385367 
    386368    // 項目名一覧の取得 
    387     function getTitleArray() 
    388     { 
     369    function getTitleArray() { 
    389370        return $this->disp_name; 
    390371    } 
    391372 
    392373    // 項目数を返す 
    393     function getCount() 
    394     { 
     374    function getCount() { 
    395375        $count = count($this->keyname); 
    396376        return $count; 
     
    398378 
    399379    // フォームに渡す用のパラメーターを返す 
    400     function getFormParamList() 
    401     { 
     380    function getFormParamList() { 
    402381        $formParamList = array(); 
    403382        foreach ($this->keyname as $index => $key) { 
     
    419398     * @return array キー名の一覧 
    420399     */ 
    421     function getKeyList() 
    422     { 
     400    function getKeyList() { 
    423401        return $this->keyname; 
    424402    } 
    425403 
    426404    // キー名と一致した値を返す 
    427     function getValue($keyname, $default = '') 
    428     { 
     405    function getValue($keyname, $default = '') { 
    429406        $ret = null; 
    430407        foreach ($this->keyname as $key) { 
     
    452429     * @deprecated 
    453430     */ 
    454     function splitParamCheckBoxes($keyname) 
    455     { 
     431    function splitParamCheckBoxes($keyname) { 
    456432        foreach ($this->keyname as $key) { 
    457433            if ($key == $keyname) { 
     
    469445     * @return void 
    470446     */ 
    471     function trimParam($has_wide_space = true) 
    472     { 
     447    function trimParam($has_wide_space = true) { 
    473448        foreach ($this->arrValue as &$value) { 
    474449            $this->recursionTrim($value, $has_wide_space); 
     
    483458     * @return void 
    484459     */ 
    485     function recursionTrim(&$value, $has_wide_space = true) 
    486     { 
     460    function recursionTrim(&$value, $has_wide_space = true) { 
    487461        $pattern = '/^[  \r\n\t]*(.*?)[  \r\n\t]*$/u'; 
    488462        if (is_array($value)) { 
    489463            foreach ($value as $key => $val) { 
    490                 $this->recursionTrim($value[$key], $has_wide_space); 
     464                $this->recursionTrim($value[$key], $convert); 
    491465            } 
    492466        } else { 
     
    508482     * @return array 検索結果引き継ぎ用の連想配列. 
    509483     */ 
    510     function getSearchArray($prefix = 'search_') 
    511     { 
     484    function getSearchArray($prefix = 'search_') { 
    512485        $arrResults = array(); 
    513486        foreach ($this->keyname as $key) { 
     
    525498     * @deprecated 2.12.0 必要ならば getFormParamList メソッドに引数を追加するなどで実現可能 
    526499     */ 
    527     function getFormDispArray() 
    528     { 
     500    function getFormDispArray() { 
    529501        $formDispArray = array(); 
    530502        foreach ($this->keyname as $index => $key) { 
     
    546518     * カスタマイズおよびプラグインで使用されるのを想定 
    547519     */ 
    548     function removeParam($keyname) 
    549     { 
     520    function removeParam($keyname) { 
    550521        $index = array_search($keyname, $this->keyname); 
    551522 
     
    590561     * @param mixed $value 指定した内容に上書きする 
    591562     */ 
    592     function overwriteParam($keyname, $target, $value) 
    593     { 
     563    function overwriteParam($keyname, $target, $value) { 
    594564        $index = array_search($keyname, $this->keyname); 
    595565 
Note: See TracChangeset for help on using the changeset viewer.