Changeset 21126 for branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
- Timestamp:
- 2011/08/04 20:48:01 (13 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21125
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/Smarty/templates/sphone/frontparts/bloc/news.tpl 19798@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2FSmarty%2Ftemplates%2Fsphone%2Ffrontparts%2Fbloc%2Fnews.tpl
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php 15367@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ffrontparts%2Fbloc%2FLC_Page_FrontParts_Bloc_News.php- bzr:mapping-version:
- v4
- bzr:merge:
ohkouchi@loop-az.jp-20110804114448-o5mdnijqgozcxint- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20110804114759-t05vdkaq7oxn3iox
- bzr:revno:
- 3829
- bzr:revprop:branch-nick:
- branches/version-2_11-dev
- bzr:root:
- branches/version-2_11-dev
- bzr:testament:
bazaar-ng testament short form 2.1
revision-id: ohkouchi@loop-az.jp-20110804114759-t05vdkaq7oxn3iox
sha1: c80c746b83aa129cb7053a7078223c04b2539b81- bzr:text-parents:
data/Smarty/templates/sphone/frontparts/bloc/news.tpl svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21124
data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21045- bzr:timestamp:
- 2011-08-04 20:47:59.305000067 +0900
- bzr:user-agent:
- bzr2.3.1+bzr-svn1.1.0dev0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
r21045 r21126 69 69 $objFormParam->setParam($_POST); 70 70 $objFormParam->convParam(); 71 $this->arrErr = $this->lfCheckError($objFormParam); 72 if(empty($this->arrEr)){ 73 $json = $this->lfGetNewsForJson($objFormParam); 74 echo $json; 75 exit; 71 $this->arrErr = $objFormParam->checkError(false); 72 if(empty($this->arrErr)){ 73 $json = $this->lfGetNewsForJson($objFormParam); 74 echo $json; 75 exit; 76 } else { 77 echo $this->lfGetErrors($this->arrErr); 78 exit; 76 79 } 77 80 break; … … 80 83 $objFormParam->setParam($_GET); 81 84 $objFormParam->convParam(); 82 $this->arrErr = $ this->lfCheckError($objFormParam);83 if(empty($this->arrEr )){85 $this->arrErr = $objFormParam->checkError(false); 86 if(empty($this->arrErr)){ 84 87 $json = $this->lfGetNewsDetailForJson($objFormParam); 85 88 echo $json; 86 89 exit; 90 } else { 91 echo $this->lfGetErrors($this->arrErr); 92 exit; 87 93 } 88 94 break; … … 113 119 $objFormParam->addParam("表示件数", "disp_number", INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"), "", false); 114 120 $objFormParam->addParam("新着ID", "news_id", INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"), "", false); 115 }116 117 /**118 * フォーム入力パラメーターエラーチェック119 *120 * @param array $objFormParam フォームパラメータークラス121 * @return array エラー配列122 */123 function lfCheckError(&$objFormParam) {124 $arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam, true);125 return $arrErr;126 121 } 127 122 … … 211 206 return $count; 212 207 } 208 209 /** 210 * エラーメッセージを整形し, JSON 形式で返す. 211 * 212 * @param array $arrErr エラーメッセージの配列 213 * @return string JSON 形式のエラーメッセージ 214 */ 215 function lfGetErrors($arrErr) { 216 $messages = ''; 217 foreach ($arrErr as $val) { 218 $messages .= $val . "\n"; 219 } 220 return SC_Utils_Ex::jsonEncode(array('error' => $messages)); 221 } 213 222 } 214 223 ?>
Note: See TracChangeset
for help on using the changeset viewer.