- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php
r22507 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Products_List extends LC_Page_Ex { 34 class LC_Page_Products_List extends LC_Page_Ex 35 { 35 36 36 37 // {{{ properties … … 68 69 * @return void 69 70 */ 70 function init() { 71 function init() 72 { 71 73 parent::init(); 72 74 … … 83 85 * @return void 84 86 */ 85 function process() { 87 function process() 88 { 86 89 parent::process(); 87 90 $this->action(); … … 94 97 * @return void 95 98 */ 96 function action() { 99 function action() 100 { 97 101 98 102 $objProduct = new SC_Product_Ex(); … … 151 155 * @return void 152 156 */ 153 function destroy() { 157 function destroy() 158 { 154 159 parent::destroy(); 155 160 } … … 160 165 * @return integer カテゴリID 161 166 */ 162 function lfGetCategoryId($category_id) { 167 function lfGetCategoryId($category_id) 168 { 163 169 164 170 // 指定なしの場合、0 を返す … … 184 190 185 191 /* 商品一覧の表示 */ 186 function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) { 192 function lfGetProductsList($searchCondition, $disp_number, $startno, $linemax, &$objProduct) 193 { 187 194 188 195 $arrOrderVal = array(); … … 242 249 243 250 /* 入力内容のチェック */ 244 function lfCheckError($product_id, &$arrForm, $tpl_classcat_find1, $tpl_classcat_find2) { 251 function lfCheckError($product_id, &$arrForm, $tpl_classcat_find1, $tpl_classcat_find2) 252 { 245 253 246 254 // 入力データを渡す。 … … 266 274 * @return void 267 275 */ 268 function lfGetDisplayNum($display_number) { 276 function lfGetDisplayNum($display_number) 277 { 269 278 // 表示件数 270 279 return (SC_Utils_Ex::sfIsInt($display_number)) … … 278 287 * @return str 279 288 */ 280 function lfGetPageTitle($mode, $category_id = 0) { 289 function lfGetPageTitle($mode, $category_id = 0) 290 { 281 291 if ($mode == 'search') { 282 292 return '検索結果'; … … 294 304 * @return array 295 305 */ 296 function lfGetSearchConditionDisp($arrSearchData) { 306 function lfGetSearchConditionDisp($arrSearchData) 307 { 297 308 $objQuery =& SC_Query_Ex::getSingletonInstance(); 298 309 $arrSearch = array('category' => '指定なし', 'maker' => '指定なし', 'name' => '指定なし'); … … 319 330 * @return int 320 331 */ 321 function lfGetProductAllNum($searchCondition) { 332 function lfGetProductAllNum($searchCondition) 333 { 322 334 // 検索結果対象となる商品の数を取得 323 335 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 332 344 * @return array 333 345 */ 334 function lfGetSearchCondition($arrSearchData) { 346 function lfGetSearchCondition($arrSearchData) 347 { 335 348 $searchCondition = array( 336 349 'where' => '', … … 391 404 * @return str 392 405 */ 393 function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) { 406 function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) 407 { 394 408 $js_fnOnLoad = ''; 395 409 foreach ($arrProducts as $key => $value) { … … 412 426 * @return void 413 427 */ 414 function lfAddCart($arrForm, $referer) { 428 function lfAddCart($arrForm, $referer) 429 { 415 430 $product_class_id = $arrForm['product_class_id']; 416 431 $objCartSess = new SC_CartSession_Ex(); … … 426 441 * @return Array $arrProducts 商品一覧情報 427 442 */ 428 function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) { 443 function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) 444 { 429 445 430 446 foreach ($arrProducts['productStatus'] as $product_id => $arrValues) { … … 448 464 * @return void 449 465 */ 450 function doJson() { 466 function doJson() 467 { 451 468 $this->arrProducts = $this->setStatusDataTo($this->arrProducts, $this->arrSTATUS, $this->arrSTATUS_IMAGE); 452 469 SC_Product_Ex::setPriceTaxTo($this->arrProducts); … … 466 483 * @return void 467 484 */ 468 function doDefault(&$objProduct) { 485 function doDefault(&$objProduct) 486 { 469 487 //商品一覧の表示処理 470 488 $strnavi = $this->objNavi->strnavi; … … 527 545 } 528 546 529 $this->tpl_javascript .= 'function fnOnLoad(){' . $js_fnOnLoad . '}'; 547 $this->tpl_javascript .= 'function fnOnLoad() 548 {' . $js_fnOnLoad . '}'; 530 549 $this->tpl_onload .= 'fnOnLoad(); '; 531 550 }
Note: See TracChangeset
for help on using the changeset viewer.