Ignore:
Timestamp:
2011/01/28 16:19:40 (15 years ago)
Author:
eccuore
Message:

#642(共通ロジックの機能向上) mode 取得用の関数を利用するように修正(switchリファクタリングは未対応)

File:
1 edited

Legend:

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

    r19947 r20041  
    9696        $this->cartItems =& $objCartSess->getAllCartList(); 
    9797 
    98         if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    99  
    100         switch($_POST['mode']) { 
     98        switch($this->getMode()) { 
    10199        case 'confirm': 
    102100            // カート内情報の取得 
     
    130128 
    131129        // 商品の個数変更、削除処理 
    132         $changeCartMode = (Net_UserAgent_Mobile::isMobile() === true) ? $_GET['mode'] : $_POST['mode']; 
    133130        /* 
    134131         * FIXME モバイルの場合 sfReload() ではなく sendRedirect() を使った方が良いが無限ループしてしまう... 
    135132         */ 
    136         switch($changeCartMode) { 
     133        switch($this->getMode()) { 
    137134        case 'up': 
    138135            if(Net_UserAgent_Mobile::isMobile() === true) { 
     
    165162            break; 
    166163        } 
    167          
     164 
    168165        // 基本情報の取得 
    169166        $this->arrInfo = $objSiteInfo->data; 
Note: See TracChangeset for help on using the changeset viewer.