- Timestamp:
- 2013/08/24 23:33:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_List.php
r23066 r23124 34 34 { 35 35 /** テンプレートクラス名1 */ 36 var$tpl_class_name1 = array();36 public $tpl_class_name1 = array(); 37 37 38 38 /** テンプレートクラス名2 */ 39 var$tpl_class_name2 = array();39 public $tpl_class_name2 = array(); 40 40 41 41 /** JavaScript テンプレート */ 42 var$tpl_javascript;43 44 var$orderby;45 46 var$mode;42 public $tpl_javascript; 43 44 public $orderby; 45 46 public $mode; 47 47 48 48 /** 検索条件(内部データ) */ 49 var$arrSearchData = array();49 public $arrSearchData = array(); 50 50 51 51 /** 検索条件(表示用) */ 52 var$arrSearch = array();53 54 var$tpl_subtitle = '';52 public $arrSearch = array(); 53 54 public $tpl_subtitle = ''; 55 55 56 56 /** ランダム文字列 **/ 57 var$tpl_rnd = '';57 public $tpl_rnd = ''; 58 58 59 59 /** … … 62 62 * @return void 63 63 */ 64 function init()64 public function init() 65 65 { 66 66 parent::init(); … … 78 78 * @return void 79 79 */ 80 function process()80 public function process() 81 81 { 82 82 parent::process(); … … 90 90 * @return void 91 91 */ 92 function action()92 public function action() 93 93 { 94 94 //決済処理中ステータスのロールバック … … 97 97 $objPurchase->checkDbMyPendignOrder(); 98 98 $objPurchase->checkDbAllPendingOrder(); 99 99 100 100 $objProduct = new SC_Product_Ex(); 101 101 // パラメーター管理クラス … … 163 163 * パラメーター情報の初期化 164 164 * 165 * @param array $objFormParam フォームパラメータークラス166 * @return void 167 */ 168 function lfInitParam(&$objFormParam)165 * @param array $objFormParam フォームパラメータークラス 166 * @return void 167 */ 168 public function lfInitParam(&$objFormParam) 169 169 { 170 170 // 抽出条件 … … 189 189 * @return integer カテゴリID 190 190 */ 191 function lfGetCategoryId($category_id)191 public function lfGetCategoryId($category_id) 192 192 { 193 193 // 指定なしの場合、0 を返す … … 197 197 if (!SC_Utils_Ex::sfIsInt($category_id) 198 198 || SC_Utils_Ex::sfIsZeroFilling($category_id) 199 || !SC_Helper_DB_Ex::sfIsRecord('dtb_category', 'category_id', (array) $category_id, 'del_flg = 0')199 || !SC_Helper_DB_Ex::sfIsRecord('dtb_category', 'category_id', (array) $category_id, 'del_flg = 0') 200 200 ) { 201 201 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); … … 213 213 214 214 /* 商品一覧の表示 */ 215 function lfGetProductsList($searchCondition, $disp_number, $startno, &$objProduct)215 public function lfGetProductsList($searchCondition, $disp_number, $startno, &$objProduct) 216 216 { 217 217 $arrOrderVal = array(); … … 272 272 273 273 /* 入力内容のチェック */ 274 function lfCheckError($objFormParam)274 public function lfCheckError($objFormParam) 275 275 { 276 276 // 入力データを渡す。 … … 295 295 * @return void 296 296 */ 297 function lfGetDisplayNum($display_number)297 public function lfGetDisplayNum($display_number) 298 298 { 299 299 // 表示件数 … … 308 308 * @return str 309 309 */ 310 function lfGetPageTitle($mode, $category_id = 0)310 public function lfGetPageTitle($mode, $category_id = 0) 311 311 { 312 312 if ($mode == 'search') { … … 317 317 $objCategory = new SC_Helper_Category_Ex(); 318 318 $arrCat = $objCategory->get($category_id); 319 319 320 return $arrCat['category_name']; 320 321 } … … 326 327 * @return array 327 328 */ 328 function lfGetSearchConditionDisp($arrSearchData)329 public function lfGetSearchConditionDisp($arrSearchData) 329 330 { 330 331 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 355 356 * @return int 356 357 */ 357 function lfGetProductAllNum($searchCondition)358 public function lfGetProductAllNum($searchCondition) 358 359 { 359 360 // 検索結果対象となる商品の数を取得 … … 370 371 * @return array 371 372 */ 372 function lfGetSearchCondition($arrSearchData)373 public function lfGetSearchCondition($arrSearchData) 373 374 { 374 375 $searchCondition = array( … … 430 431 * @return str 431 432 */ 432 function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id)433 public function lfSetSelectedData(&$arrProducts, $arrForm, $arrErr, $product_id) 433 434 { 434 435 $js_fnOnLoad = ''; … … 453 454 * @return void 454 455 */ 455 function lfAddCart($arrForm)456 public function lfAddCart($arrForm) 456 457 { 457 458 $objCartSess = new SC_CartSession_Ex(); … … 464 465 * 商品情報配列に商品ステータス情報を追加する 465 466 * 466 * @param Array $arrProducts商品一覧情報467 * @param Array $arrStatus商品ステータス配列468 * @param Array $arrStatusImage スタータス画像配列467 * @param Array $arrProducts 商品一覧情報 468 * @param Array $arrStatus 商品ステータス配列 469 * @param Array $arrStatusImage スタータス画像配列 469 470 * @return Array $arrProducts 商品一覧情報 470 471 */ 471 function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage)472 public function setStatusDataTo($arrProducts, $arrStatus, $arrStatusImage) 472 473 { 473 474 foreach ($arrProducts['productStatus'] as $product_id => $arrValues) { … … 492 493 * @return void 493 494 */ 494 function doJson()495 public function doJson() 495 496 { 496 497 $this->arrProducts = $this->setStatusDataTo($this->arrProducts, $this->arrSTATUS, $this->arrSTATUS_IMAGE); … … 508 509 /** 509 510 * 510 * @param type $objProduct511 * @return void 512 */ 513 function doDefault(&$objProduct, &$objFormParam)511 * @param type $objProduct 512 * @return void 513 */ 514 public function doDefault(&$objProduct, &$objFormParam) 514 515 { 515 516 //商品一覧の表示処理
Note: See TracChangeset
for help on using the changeset viewer.