Ignore:
Timestamp:
2013/05/02 18:11:36 (11 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/pages/mypage/LC_Page_Mypage_Change.php

    r22591 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Mypage_Change extends LC_Page_AbstractMypage_Ex  
    35 { 
     34class LC_Page_Mypage_Change extends LC_Page_AbstractMypage_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_subtitle = '会員登録内容変更(入力ページ)'; 
     
    6967     * @return void 
    7068     */ 
    71     function process() 
    72     { 
     69    function process() { 
    7370        parent::process(); 
    7471    } 
     
    7875     * @return void 
    7976     */ 
    80     function action() 
    81     { 
     77    function action() { 
    8278 
    8379        $objCustomer = new SC_Customer_Ex(); 
     
    170166     * @return void 
    171167     */ 
    172     function destroy() 
    173     { 
     168    function destroy() { 
    174169        parent::destroy(); 
    175170    } 
     
    183178     * @return void 
    184179     */ 
    185     function lfRegistCustomerData(&$objFormParam, $customer_id) 
    186     { 
     180    function lfRegistCustomerData(&$objFormParam, $customer_id) { 
    187181        $arrRet             = $objFormParam->getHashArray(); 
    188182        $sqlval             = $objFormParam->getDbArray(); 
     
    198192     * @return array $arrErr エラーメッセージ配列 
    199193     */ 
    200     function lfCheckError($arrRequest) 
    201     { 
     194    function lfCheckError($arrRequest) { 
    202195        // パラメーター管理クラス 
    203196        $objFormParam = new SC_FormParam_Ex(); 
     
    211204        // エラーチェック 
    212205        $arrErr = $objFormParam->checkError(); 
     206        // 親ウィンドウの戻り値を格納するinputタグのnameのエラーチェック 
     207        if (!$this->lfInputNameCheck($addData['zip01'])) { 
     208            $arrErr['zip01'] = '※ 入力形式が不正です。<br />'; 
     209        } 
     210        if (!$this->lfInputNameCheck($arrdata['zip02'])) { 
     211            $arrErr['zip02'] = '※ 入力形式が不正です。<br />'; 
     212        } 
    213213 
    214214        return $arrErr; 
    215215    } 
     216 
     217    /** 
     218     * エラーチェック. 
     219     * 
     220     * @param string $value 
     221     * @return エラーなし:true エラー:false 
     222     */ 
     223    function lfInputNameCheck($value) { 
     224        // 半角英数字と_(アンダーバー), []以外の文字を使用していたらエラー 
     225        if (strlen($value) > 0 && !preg_match("/^[a-zA-Z0-9_\[\]]+$/", $value)) { 
     226            return false; 
     227        } 
     228 
     229        return true; 
     230    } 
    216231} 
Note: See TracChangeset for help on using the changeset viewer.