Ignore:
Timestamp:
2013/08/26 15:52:37 (11 years ago)
Author:
m_uehara
Message:

#2348 r23116 - r23125 をマージ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_0/data/class/pages/products/LC_Page_Products_Detail.php

    r23103 r23126  
    3737{ 
    3838    /** 商品ステータス */ 
    39     var $arrSTATUS; 
     39    public $arrSTATUS; 
    4040 
    4141    /** 商品ステータス画像 */ 
    42     var $arrSTATUS_IMAGE; 
     42    public $arrSTATUS_IMAGE; 
    4343 
    4444    /** 発送予定日 */ 
    45     var $arrDELIVERYDATE; 
     45    public $arrDELIVERYDATE; 
    4646 
    4747    /** おすすめレベル */ 
    48     var $arrRECOMMEND; 
     48    public $arrRECOMMEND; 
    4949 
    5050    /** フォームパラメーター */ 
    51     var $objFormParam; 
     51    public $objFormParam; 
    5252 
    5353    /** アップロードファイル */ 
    54     var $objUpFile; 
     54    public $objUpFile; 
    5555 
    5656    /** モード */ 
    57     var $mode; 
     57    public $mode; 
    5858 
    5959    /** 
     
    6262     * @return void 
    6363     */ 
    64     function init() 
     64    public function init() 
    6565    { 
    6666        parent::init(); 
     
    8585     * @return void 
    8686     */ 
    87     function process() 
     87    public function process() 
    8888    { 
    8989        parent::process(); 
     
    9797     * @return void 
    9898     */ 
    99     function action() 
     99    public function action() 
    100100    { 
    101101        //決済処理中ステータスのロールバック 
     
    104104        $objPurchase->checkDbMyPendignOrder(); 
    105105        $objPurchase->checkDbAllPendingOrder(); 
    106          
     106 
    107107        // 会員クラス 
    108108        $objCustomer = new SC_Customer_Ex(); 
     
    246246 
    247247    /* プロダクトIDの正当性チェック */ 
    248     function lfCheckProductId($admin_mode, $product_id) 
     248    public function lfCheckProductId($admin_mode, $product_id) 
    249249    { 
    250250        // 管理機能からの確認の場合は、非公開の商品も表示する。 
     
    260260        if (!SC_Utils_Ex::sfIsInt($product_id) 
    261261            || 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) 
    263263        ) { 
    264264                SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 
     
    269269 
    270270    /* ファイル情報の初期化 */ 
    271     function lfInitFile($objUpFile) 
     271    public function lfInitFile($objUpFile) 
    272272    { 
    273273        $objUpFile->addFile('詳細-メイン画像', 'main_image', array('jpg'), IMAGE_SIZE); 
     
    280280 
    281281    /* 規格選択セレクトボックスの作成 */ 
    282     function lfMakeSelect() 
     282    public function lfMakeSelect() 
    283283    { 
    284284        return 'fnSetClassCategories(' 
     
    289289 
    290290    /* 規格選択セレクトボックスの作成(モバイル) */ 
    291     function lfMakeSelectMobile(&$objPage, $product_id, $request_classcategory_id1) 
     291    public function lfMakeSelectMobile(&$objPage, $product_id, $request_classcategory_id1) 
    292292    { 
    293293        $classcat_find1 = false; 
     
    352352 
    353353    /* パラメーター情報の初期化 */ 
    354     function lfInitParam(&$objFormParam) 
     354    public function lfInitParam(&$objFormParam) 
    355355    { 
    356356        $objFormParam->addParam('規格1', 'classcategory_id1', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    370370 
    371371    /* 商品規格情報の取得 */ 
    372     function lfGetProductsClass($product_id) 
     372    public function lfGetProductsClass($product_id) 
    373373    { 
    374374        $objProduct = new SC_Product_Ex(); 
     
    378378 
    379379    /* 登録済み関連商品の読み込み */ 
    380     function lfPreGetRecommendProducts($product_id) 
     380    public function lfPreGetRecommendProducts($product_id) 
    381381    { 
    382382        $objProduct = new SC_Product_Ex(); 
     
    402402 
    403403    /* 入力内容のチェック */ 
    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) 
    405405    { 
    406406        switch ($mode) { 
     
    434434 
    435435    //商品ごとのレビュー情報を取得する 
    436     function lfGetReviewData($product_id) 
     436    public function lfGetReviewData($product_id) 
    437437    { 
    438438        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    453453     * @return $subImageFlag 
    454454     */ 
    455     function lfSetFile($objUpFile, $arrProduct, &$arrFile) 
     455    public function lfSetFile($objUpFile, $arrProduct, &$arrFile) 
    456456    { 
    457457        // DBからのデータを引き継ぐ 
     
    475475     * @return void 
    476476     */ 
    477     function lfRegistFavoriteProduct($favorite_product_id, $customer_id) 
     477    public function lfRegistFavoriteProduct($favorite_product_id, $customer_id) 
    478478    { 
    479479        // ログイン中のユーザが商品をお気に入りにいれる処理 
    480480        if (!SC_Helper_DB_Ex::sfIsRecord('dtb_products', 'product_id', $favorite_product_id, 'del_flg = 0 AND status = 1')) { 
    481481            SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 
     482 
    482483            return false; 
    483484        } else { 
     
    497498            // お気に入りに登録したことを示すフラグ 
    498499            $this->just_added_favorite = true; 
     500 
    499501            return true; 
    500502        } 
     
    506508     * @return void 
    507509     */ 
    508     function doCart() 
     510    public function doCart() 
    509511    { 
    510512        $this->arrErr = $this->lfCheckError($this->mode,$this->objFormParam, 
     
    530532     * Add product to authenticated user's favorites. 
    531533     * 
    532      * @param type $objCustomer 
    533      * @return void 
    534      */ 
    535     function doAddFavorite(&$objCustomer) 
     534     * @param  type $objCustomer 
     535     * @return void 
     536     */ 
     537    public function doAddFavorite(&$objCustomer) 
    536538    { 
    537539        // ログイン中のユーザが商品をお気に入りにいれる処理 
     
    550552     * Add product to authenticated user's favorites. (for Smart phone) 
    551553     * 
    552      * @param type $objCustomer 
    553      * @return void 
    554      */ 
    555     function doAddFavoriteSphone($objCustomer) 
     554     * @param  type $objCustomer 
     555     * @return void 
     556     */ 
     557    public function doAddFavoriteSphone($objCustomer) 
    556558    { 
    557559        // ログイン中のユーザが商品をお気に入りにいれる処理(スマートフォン用) 
     
    576578     * @return void 
    577579     */ 
    578     function doDefault() 
     580    public function doDefault() 
    579581    { 
    580582        // カート「戻るボタン」用に保持 
     
    587589     * @return void 
    588590     */ 
    589     function doMobileSelect() 
     591    public function doMobileSelect() 
    590592    { 
    591593        // 規格1が設定されている場合 
     
    593595            // templateの変更 
    594596            $this->tpl_mainpage = 'products/select_find1.tpl'; 
     597 
    595598            return; 
    596599        } 
     
    604607     * @return type 
    605608     */ 
    606     function doMobileSelect2() 
     609    public function doMobileSelect2() 
    607610    { 
    608611        $this->arrErr = $this->lfCheckError($this->mode, $this->objFormParam, $this->tpl_classcat_find1, $this->tpl_classcat_find2); 
     
    612615            // templateの変更 
    613616            $this->tpl_mainpage = 'products/select_find1.tpl'; 
     617 
    614618            return; 
    615619        } 
     
    620624 
    621625            $this->tpl_mainpage = 'products/select_find2.tpl'; 
     626 
    622627            return; 
    623628        } 
     
    630635     * @return void 
    631636     */ 
    632     function doMobileSelectItem() 
     637    public function doMobileSelectItem() 
    633638    { 
    634639        $objProduct = new SC_Product_Ex(); 
     
    645650            // templateの変更 
    646651            $this->tpl_mainpage = 'products/select_find2.tpl'; 
     652 
    647653            return; 
    648654        } 
     
    656662 
    657663        // 規格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) { 
    659665            $value2 = '#' . $this->objFormParam->getValue('classcategory_id2'); 
    660666        } else { 
     
    673679     * @return void 
    674680     */ 
    675     function doMobileCart() 
     681    public function doMobileCart() 
    676682    { 
    677683        // この段階でエラーが出る場合は、数量の入力エラーのはず 
     
    686692     * @return void 
    687693     */ 
    688     function doMobileDefault() 
     694    public function doMobileDefault() 
    689695    { 
    690696        $this->tpl_mainpage = 'products/detail.tpl'; 
Note: See TracChangeset for help on using the changeset viewer.