- Timestamp:
- 2013/08/26 15:52:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13_0/data/class/pages/products/LC_Page_Products_Detail.php
r23103 r23126 37 37 { 38 38 /** 商品ステータス */ 39 var$arrSTATUS;39 public $arrSTATUS; 40 40 41 41 /** 商品ステータス画像 */ 42 var$arrSTATUS_IMAGE;42 public $arrSTATUS_IMAGE; 43 43 44 44 /** 発送予定日 */ 45 var$arrDELIVERYDATE;45 public $arrDELIVERYDATE; 46 46 47 47 /** おすすめレベル */ 48 var$arrRECOMMEND;48 public $arrRECOMMEND; 49 49 50 50 /** フォームパラメーター */ 51 var$objFormParam;51 public $objFormParam; 52 52 53 53 /** アップロードファイル */ 54 var$objUpFile;54 public $objUpFile; 55 55 56 56 /** モード */ 57 var$mode;57 public $mode; 58 58 59 59 /** … … 62 62 * @return void 63 63 */ 64 function init()64 public function init() 65 65 { 66 66 parent::init(); … … 85 85 * @return void 86 86 */ 87 function process()87 public function process() 88 88 { 89 89 parent::process(); … … 97 97 * @return void 98 98 */ 99 function action()99 public function action() 100 100 { 101 101 //決済処理中ステータスのロールバック … … 104 104 $objPurchase->checkDbMyPendignOrder(); 105 105 $objPurchase->checkDbAllPendingOrder(); 106 106 107 107 // 会員クラス 108 108 $objCustomer = new SC_Customer_Ex(); … … 246 246 247 247 /* プロダクトIDの正当性チェック */ 248 function lfCheckProductId($admin_mode, $product_id)248 public function lfCheckProductId($admin_mode, $product_id) 249 249 { 250 250 // 管理機能からの確認の場合は、非公開の商品も表示する。 … … 260 260 if (!SC_Utils_Ex::sfIsInt($product_id) 261 261 || SC_Utils_Ex::sfIsZeroFilling($product_id) 262 || !SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', (array) $product_id, $where)262 || !SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', (array) $product_id, $where) 263 263 ) { 264 264 SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); … … 269 269 270 270 /* ファイル情報の初期化 */ 271 function lfInitFile($objUpFile)271 public function lfInitFile($objUpFile) 272 272 { 273 273 $objUpFile->addFile('詳細-メイン画像', 'main_image', array('jpg'), IMAGE_SIZE); … … 280 280 281 281 /* 規格選択セレクトボックスの作成 */ 282 function lfMakeSelect()282 public function lfMakeSelect() 283 283 { 284 284 return 'fnSetClassCategories(' … … 289 289 290 290 /* 規格選択セレクトボックスの作成(モバイル) */ 291 function lfMakeSelectMobile(&$objPage, $product_id, $request_classcategory_id1)291 public function lfMakeSelectMobile(&$objPage, $product_id, $request_classcategory_id1) 292 292 { 293 293 $classcat_find1 = false; … … 352 352 353 353 /* パラメーター情報の初期化 */ 354 function lfInitParam(&$objFormParam)354 public function lfInitParam(&$objFormParam) 355 355 { 356 356 $objFormParam->addParam('規格1', 'classcategory_id1', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); … … 370 370 371 371 /* 商品規格情報の取得 */ 372 function lfGetProductsClass($product_id)372 public function lfGetProductsClass($product_id) 373 373 { 374 374 $objProduct = new SC_Product_Ex(); … … 378 378 379 379 /* 登録済み関連商品の読み込み */ 380 function lfPreGetRecommendProducts($product_id)380 public function lfPreGetRecommendProducts($product_id) 381 381 { 382 382 $objProduct = new SC_Product_Ex(); … … 402 402 403 403 /* 入力内容のチェック */ 404 function lfCheckError($mode, &$objFormParam, $tpl_classcat_find1 = null , $tpl_classcat_find2 = null)404 public function lfCheckError($mode, &$objFormParam, $tpl_classcat_find1 = null , $tpl_classcat_find2 = null) 405 405 { 406 406 switch ($mode) { … … 434 434 435 435 //商品ごとのレビュー情報を取得する 436 function lfGetReviewData($product_id)436 public function lfGetReviewData($product_id) 437 437 { 438 438 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 453 453 * @return $subImageFlag 454 454 */ 455 function lfSetFile($objUpFile, $arrProduct, &$arrFile)455 public function lfSetFile($objUpFile, $arrProduct, &$arrFile) 456 456 { 457 457 // DBからのデータを引き継ぐ … … 475 475 * @return void 476 476 */ 477 function lfRegistFavoriteProduct($favorite_product_id, $customer_id)477 public function lfRegistFavoriteProduct($favorite_product_id, $customer_id) 478 478 { 479 479 // ログイン中のユーザが商品をお気に入りにいれる処理 480 480 if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, 'del_flg = 0 AND status = 1')) { 481 481 SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 482 482 483 return false; 483 484 } else { … … 497 498 // お気に入りに登録したことを示すフラグ 498 499 $this->just_added_favorite = true; 500 499 501 return true; 500 502 } … … 506 508 * @return void 507 509 */ 508 function doCart()510 public function doCart() 509 511 { 510 512 $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam, … … 530 532 * Add product to authenticated user's favorites. 531 533 * 532 * @param type $objCustomer533 * @return void 534 */ 535 function doAddFavorite(&$objCustomer)534 * @param type $objCustomer 535 * @return void 536 */ 537 public function doAddFavorite(&$objCustomer) 536 538 { 537 539 // ログイン中のユーザが商品をお気に入りにいれる処理 … … 550 552 * Add product to authenticated user's favorites. (for Smart phone) 551 553 * 552 * @param type $objCustomer553 * @return void 554 */ 555 function doAddFavoriteSphone($objCustomer)554 * @param type $objCustomer 555 * @return void 556 */ 557 public function doAddFavoriteSphone($objCustomer) 556 558 { 557 559 // ログイン中のユーザが商品をお気に入りにいれる処理(スマートフォン用) … … 576 578 * @return void 577 579 */ 578 function doDefault()580 public function doDefault() 579 581 { 580 582 // カート「戻るボタン」用に保持 … … 587 589 * @return void 588 590 */ 589 function doMobileSelect()591 public function doMobileSelect() 590 592 { 591 593 // 規格1が設定されている場合 … … 593 595 // templateの変更 594 596 $this->tpl_mainpage = 'products/select_find1.tpl'; 597 595 598 return; 596 599 } … … 604 607 * @return type 605 608 */ 606 function doMobileSelect2()609 public function doMobileSelect2() 607 610 { 608 611 $this->arrErr = $this->lfCheckError($this->mode, $this->objFormParam, $this->tpl_classcat_find1, $this->tpl_classcat_find2); … … 612 615 // templateの変更 613 616 $this->tpl_mainpage = 'products/select_find1.tpl'; 617 614 618 return; 615 619 } … … 620 624 621 625 $this->tpl_mainpage = 'products/select_find2.tpl'; 626 622 627 return; 623 628 } … … 630 635 * @return void 631 636 */ 632 function doMobileSelectItem()637 public function doMobileSelectItem() 633 638 { 634 639 $objProduct = new SC_Product_Ex(); … … 645 650 // templateの変更 646 651 $this->tpl_mainpage = 'products/select_find2.tpl'; 652 647 653 return; 648 654 } … … 656 662 657 663 // 規格2が設定されている場合. 658 if (SC_Utils_Ex::isBlank($this->objFormParam->getValue('classcategory_id2')) == false) {664 if (SC_Utils_Ex::isBlank($this->objFormParam->getValue('classcategory_id2')) == false) { 659 665 $value2 = '#' . $this->objFormParam->getValue('classcategory_id2'); 660 666 } else { … … 673 679 * @return void 674 680 */ 675 function doMobileCart()681 public function doMobileCart() 676 682 { 677 683 // この段階でエラーが出る場合は、数量の入力エラーのはず … … 686 692 * @return void 687 693 */ 688 function doMobileDefault()694 public function doMobileDefault() 689 695 { 690 696 $this->tpl_mainpage = 'products/detail.tpl';
Note: See TracChangeset
for help on using the changeset viewer.