Changeset 22567 for branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
- Timestamp:
- 2013/02/18 19:09:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_FrontParts_Bloc_News extends LC_Page_FrontParts_Bloc_Ex { 34 class LC_Page_FrontParts_Bloc_News extends LC_Page_FrontParts_Bloc_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 } … … 51 53 * @return void 52 54 */ 53 function process() { 55 function process() 56 { 54 57 $this->action(); 55 58 $this->sendResponse(); … … 61 64 * @return void 62 65 */ 63 function action() { 66 function action() 67 { 64 68 65 69 $objFormParam = new SC_FormParam_Ex(); … … 108 112 * @return void 109 113 */ 110 function destroy() { 114 function destroy() 115 { 111 116 parent::destroy(); 112 117 } … … 118 123 * @return void 119 124 */ 120 function lfInitNewsParam(&$objFormParam) { 125 function lfInitNewsParam(&$objFormParam) 126 { 121 127 $objFormParam->addParam('現在ページ', 'pageno', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), '', false); 122 128 $objFormParam->addParam('表示件数', 'disp_number', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'), '', false); … … 129 135 * @return array $arrNewsList 新着情報の配列を返す 130 136 */ 131 function lfGetNews(&$objQuery) { 137 function lfGetNews(&$objQuery) 138 { 132 139 $objQuery->setOrder('rank DESC '); 133 140 $arrNewsList = $objQuery->select('* , cast(news_date as date) as news_date_disp', 'dtb_news' ,'del_flg = 0'); … … 155 162 * @return String $json 新着情報のJSONを返す 156 163 */ 157 function lfGetNewsForJson(&$objFormParam) { 164 function lfGetNewsForJson(&$objFormParam) 165 { 158 166 159 167 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 184 192 * @return String $json 新着情報1件分のJSONを返す 185 193 */ 186 function lfGetNewsDetailForJson(&$objFormParam) { 194 function lfGetNewsDetailForJson(&$objFormParam) 195 { 187 196 188 197 $objQuery = SC_Query_Ex::getSingletonInstance(); … … 201 210 * @return Integer $count 新着情報の件数を返す 202 211 */ 203 function lfGetNewsCount() { 212 function lfGetNewsCount() 213 { 204 214 205 215 $count = 0; … … 217 227 * @return string JSON 形式のエラーメッセージ 218 228 */ 219 function lfGetErrors($arrErr) { 229 function lfGetErrors($arrErr) 230 { 220 231 $messages = ''; 221 232 foreach ($arrErr as $val) {
Note: See TracChangeset
for help on using the changeset viewer.