Changeset 20545


Ignore:
Timestamp:
2011/03/07 17:42:27 (13 years ago)
Author:
kimoto
Message:

addParamしたものをそのまま返すものがないので作成

File:
1 edited

Legend:

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

    r20538 r20545  
    492492        return $arrResults; 
    493493    } 
     494 
     495 
     496    // addParam の内容をそのまま返す 
     497    function getFormDispArray() { 
     498        $cnt = 0; 
     499        foreach($this->keyname as $val) { 
     500            // キー名 
     501            $arrRet[$cnt]['keyname'] = $this->keyname[$cnt]; 
     502            // 文字数制限 
     503            $arrRet[$cnt]['length'] = $this->length[$cnt]; 
     504 
     505            $arrRet[$cnt]['disp_name']  = $this->disp_name[$cnt]; 
     506            // 入力値 
     507            if (isset($this->param[$cnt])) { 
     508                $arrRet[$cnt]['value'] = $this->param[$cnt]; 
     509            } 
     510 
     511            if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 
     512 
     513            if($this->default[$cnt] != "" && $this->param[$cnt] == "") { 
     514                $arrRet[$cnt]['value'] = $this->default[$cnt]; 
     515            } 
     516            $cnt++; 
     517        } 
     518        return $arrRet; 
     519    } 
     520 
     521 
    494522} 
    495523?> 
Note: See TracChangeset for help on using the changeset viewer.