Ignore:
Timestamp:
2012/05/11 18:55:33 (12 years ago)
Author:
shutta
Message:

#1800 (SC_FormParamのパラメーター定義を調整する関数追加)
パラメーター定義の上書き用関数追加

File:
1 edited

Legend:

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

    r21822 r21823  
    540540        } 
    541541    } 
     542 
     543    /** 
     544     * パラメーター定義の上書き 
     545     * 
     546     * @param string $keyname キー名 
     547     * @param string $target 上書きしたい項目名(disp_name,length,convert等) 
     548     * @param mixed $value 指定した内容に上書きする 
     549     */ 
     550    function overwriteParam($keyname, $target, $value) 
     551    { 
     552        $index = array_search($keyname, $this->keyname); 
     553 
     554        if ($index !== FALSE) { 
     555            $this->{$target}[$index] = $value; 
     556        } 
     557    } 
    542558} 
Note: See TracChangeset for help on using the changeset viewer.