Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/cart/LC_Page_Cart.php

    r22608 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Cart extends LC_Page_Ex  
    35 { 
     34class LC_Page_Cart extends LC_Page_Ex { 
    3635 
    3736    // {{{ properties 
     
    5453     * @return void 
    5554     */ 
    56     function init() 
    57     { 
     55    function init() { 
    5856        parent::init(); 
    5957        $this->tpl_title = '現在のカゴの中'; 
     
    6866     * @return void 
    6967     */ 
    70     function process() 
    71     { 
     68    function process() { 
    7269        parent::process(); 
    7370        $this->action(); 
     
    8077     * @return void 
    8178     */ 
    82     function action() 
    83     { 
     79    function action() { 
    8480 
    8581        $objCartSess = new SC_CartSession_Ex(); 
     
    108104        } 
    109105 
    110         $objFormParam4OpenCategoryTree = 
    111             $this->lfInitParam4OpenCategoryTree($_REQUEST); 
    112         if ($objFormParam4OpenCategoryTree->getValue('product_id')) { 
    113             $arrQueryString = array( 
    114                 'product_id' => $objFormParam4OpenCategoryTree->getValue( 
    115                     'product_id'), 
    116             ); 
    117         } else { 
    118             $arrQueryString = array( 
    119                 'category_id' => $objFormParam4OpenCategoryTree->getValue( 
    120                     'category_id'), 
    121             ); 
    122         } 
    123  
    124106        switch ($this->mode) { 
    125107            case 'confirm': 
     
    140122                $objCartSess->upQuantity($cart_no, $cartKey); 
    141123 
    142                 SC_Response_Ex::reload($arrQueryString, true); 
     124 
     125                SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    143126                SC_Response_Ex::actionExit(); 
    144127                break; 
     
    146129                $objCartSess->downQuantity($cart_no, $cartKey); 
    147130 
    148                 SC_Response_Ex::reload($arrQueryString, true); 
     131 
     132                SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    149133                SC_Response_Ex::actionExit(); 
    150134                break; 
     
    152136                $objCartSess->setQuantity($objFormParam->getValue('quantity'), $cart_no, $cartKey); 
    153137 
    154                 SC_Response_Ex::reload($arrQueryString, true); 
     138 
     139                SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    155140                SC_Response_Ex::actionExit(); 
    156141                break; 
     
    158143                $objCartSess->delProduct($cart_no, $cartKey); 
    159144 
    160                 SC_Response_Ex::reload($arrQueryString, true); 
     145 
     146                SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    161147                SC_Response_Ex::actionExit(); 
    162148                break; 
     
    187173        $this->tpl_all_total_inctax = $totalIncTax; 
    188174 
    189         $this->tpl_category_id = 
    190             $objFormParam4OpenCategoryTree->getValue('category_id'); 
    191         $this->tpl_product_id = 
    192             $objFormParam4OpenCategoryTree->getValue('product_id'); 
     175        $this->tpl_category_id = $objFormParam->getValue('category_id'); 
    193176 
    194177        // ログイン判定 
     
    215198     * @return void 
    216199     */ 
    217     function destroy() 
    218     { 
     200    function destroy() { 
    219201        parent::destroy(); 
    220202    } 
     
    225207     * @return object 
    226208     */ 
    227     function lfInitParam($arrRequest) 
    228     { 
     209    function lfInitParam($arrRequest) { 
    229210        $objFormParam = new SC_FormParam_Ex(); 
    230211        $objFormParam->addParam('カートキー', 'cartKey', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK')); 
    231212        $objFormParam->addParam('カートナンバー', 'cart_no', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     213        // PC版での値引き継ぎ用 
     214        $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    232215        // スマートフォン版での数量変更用 
    233216        $objFormParam->addParam('数量', 'quantity', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     
    240223 
    241224    /** 
    242      * PC版での開いているカテゴリーツリーの維持用の入力値 
    243      * 
    244      * @return object 
    245      */ 
    246     function lfInitParam4OpenCategoryTree($arrRequest) 
    247     { 
    248         $objFormParam = new SC_FormParam_Ex(); 
    249  
    250         $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', 
    251             array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    252         $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', 
    253             array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    254  
    255         // 値の取得 
    256         $objFormParam->setParam($arrRequest); 
    257         // 入力値の変換 
    258         $objFormParam->convParam(); 
    259         return $objFormParam; 
    260     } 
    261  
    262     /** 
    263225     * order_temp_id の更新 
    264226     * 
    265227     * @return 
    266228     */ 
    267     function lfUpdateOrderTempid($pre_uniqid,$uniqid) 
    268     { 
     229    function lfUpdateOrderTempid($pre_uniqid,$uniqid) { 
    269230        $sqlval['order_temp_id'] = $uniqid; 
    270231        $where = 'order_temp_id = ?'; 
     
    282243     * @return void 
    283244     */ 
    284     function lfGetCartPrevUrl(&$session,$referer) 
    285     { 
     245    function lfGetCartPrevUrl(&$session,$referer) { 
    286246        if (!preg_match('/cart/', $referer)) { 
    287247            if (!empty($session['cart_referer_url'])) { 
     
    307267     * @return void 
    308268     */ 
    309     function lfSetCurrentCart(&$objSiteSess, &$objCartSess, $cartKey) 
    310     { 
     269    function lfSetCurrentCart(&$objSiteSess, &$objCartSess, $cartKey) { 
    311270        // 正常に登録されたことを記録しておく 
    312271        $objSiteSess->setRegistFlag(); 
Note: See TracChangeset for help on using the changeset viewer.