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/pages/entry/LC_Page_Entry.php

    r22591 r22796  
    3232 * @version $Id:LC_Page_Entry.php 15532 2007-08-31 14:39:46Z nanasess $ 
    3333 */ 
    34 class LC_Page_Entry extends LC_Page_Ex  
    35 { 
     34class LC_Page_Entry extends LC_Page_Ex { 
    3635 
    3736    // {{{ properties 
     
    4443     * @return void 
    4544     */ 
    46     function init() 
    47     { 
     45    function init() { 
    4846        parent::init(); 
    4947        $masterData         = new SC_DB_MasterData_Ex(); 
     
    6664     * @return void 
    6765     */ 
    68     function process() 
    69     { 
     66    function process() { 
    7067        parent::process(); 
    7168        $this->action(); 
     
    7774     * @return void 
    7875     */ 
    79     function action() 
    80     { 
     76    function action() { 
    8177 
    8278        $objFormParam = new SC_FormParam_Ex(); 
     
    171167     * @return void 
    172168     */ 
    173     function destroy() 
    174     { 
     169    function destroy() { 
    175170        parent::destroy(); 
    176171    } 
     
    184179     * @return uniqid 
    185180     */ 
    186     function lfRegistCustomerData($sqlval) 
    187     { 
     181    function lfRegistCustomerData($sqlval) { 
    188182        SC_Helper_Customer_Ex::sfEditCustomerData($sqlval); 
    189183        return $sqlval['secret_key']; 
     
    201195     * @return $arrResults 
    202196     */ 
    203     function lfMakeSqlVal(&$objFormParam) 
    204     { 
     197    function lfMakeSqlVal(&$objFormParam) { 
    205198        $arrForm                = $objFormParam->getHashArray(); 
    206199        $arrResults             = $objFormParam->getDbArray(); 
     
    237230     * @return void 
    238231     */ 
    239     function lfSendMail($uniqid, $arrForm) 
    240     { 
     232    function lfSendMail($uniqid, $arrForm) { 
    241233        $CONF           = SC_Helper_DB_Ex::sfGetBasisData(); 
    242234 
     
    293285     * @return boolean kiyaku.php からの妥当な遷移であれば true 
    294286     */ 
    295     function lfCheckReferer(&$post, $referer) 
    296     { 
     287    function lfCheckReferer(&$post, $referer) { 
    297288 
    298289        if (SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE 
     
    310301     * @return array $arrErr エラーメッセージ配列 
    311302     */ 
    312     function lfCheckError($arrRequest) 
    313     { 
     303    function lfCheckError($arrRequest) { 
    314304        // パラメーター管理クラス 
    315305        $objFormParam = new SC_FormParam_Ex(); 
     
    323313        // エラーチェック 
    324314        $arrErr = $objFormParam->checkError(); 
     315        // 親ウィンドウの戻り値を格納するinputタグのnameのエラーチェック 
     316        if (!$this->lfInputNameCheck($addData['zip01'])) { 
     317            $arrErr['zip01'] = '※ 入力形式が不正です。<br />'; 
     318        } 
     319        if (!$this->lfInputNameCheck($arrdata['zip02'])) { 
     320            $arrErr['zip02'] = '※ 入力形式が不正です。<br />'; 
     321        } 
    325322 
    326323        return $arrErr; 
    327324    } 
     325 
     326    /** 
     327     * エラーチェック. 
     328     * 
     329     * @param string $value 
     330     * @return エラーなし:true エラー:false 
     331     */ 
     332    function lfInputNameCheck($value) { 
     333        // 半角英数字と_(アンダーバー), []以外の文字を使用していたらエラー 
     334        if (strlen($value) > 0 && !preg_match("/^[a-zA-Z0-9_\[\]]+$/", $value)) { 
     335            return false; 
     336        } 
     337 
     338        return true; 
     339    } 
    328340} 
Note: See TracChangeset for help on using the changeset viewer.