- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php
r22591 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Mypage_Change extends LC_Page_AbstractMypage_Ex 35 { 34 class LC_Page_Mypage_Change extends LC_Page_AbstractMypage_Ex { 36 35 37 36 // }}} … … 43 42 * @return void 44 43 */ 45 function init() 46 { 44 function init() { 47 45 parent::init(); 48 46 $this->tpl_subtitle = '会員登録内容変更(入力ページ)'; … … 69 67 * @return void 70 68 */ 71 function process() 72 { 69 function process() { 73 70 parent::process(); 74 71 } … … 78 75 * @return void 79 76 */ 80 function action() 81 { 77 function action() { 82 78 83 79 $objCustomer = new SC_Customer_Ex(); … … 170 166 * @return void 171 167 */ 172 function destroy() 173 { 168 function destroy() { 174 169 parent::destroy(); 175 170 } … … 183 178 * @return void 184 179 */ 185 function lfRegistCustomerData(&$objFormParam, $customer_id) 186 { 180 function lfRegistCustomerData(&$objFormParam, $customer_id) { 187 181 $arrRet = $objFormParam->getHashArray(); 188 182 $sqlval = $objFormParam->getDbArray(); … … 198 192 * @return array $arrErr エラーメッセージ配列 199 193 */ 200 function lfCheckError($arrRequest) 201 { 194 function lfCheckError($arrRequest) { 202 195 // パラメーター管理クラス 203 196 $objFormParam = new SC_FormParam_Ex(); … … 211 204 // エラーチェック 212 205 $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 } 213 213 214 214 return $arrErr; 215 215 } 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 } 216 231 }
Note: See TracChangeset
for help on using the changeset viewer.