Ignore:
Timestamp:
2007/08/29 17:30:22 (17 years ago)
Author:
nanasess
Message:

PHP4 & PHP5 対応
リファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/products/LC_Page_Products_Detail.php

    r15365 r15411  
    6666        // レイアウトデザインを取得 
    6767        $helper = new SC_Helper_PageLayout_Ex(); 
    68         $this = $helper->sfGetPageLayout($this, false, "products/detail.php"); 
     68        $helper->sfGetPageLayout($this, false, "products/detail.php"); 
    6969 
    7070        // パラメータ管理クラス 
     
    131131 
    132132        // 規格選択セレクトボックスの作成 
    133         $this = $this->lfMakeSelect($this, $tmp_id); 
     133        $this->lfMakeSelect($tmp_id); 
    134134 
    135135        // 商品IDをFORM内に保持する。 
     
    160160                $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); 
    161161                $objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 
    162                 header("Location: " . URL_CART_TOP); 
    163  
     162                $this->sendRedirect($this->getLocation(URL_CART_TOP)); 
    164163                exit; 
    165164            } 
     
    254253 
    255254    /* 規格選択セレクトボックスの作成 */ 
    256     function lfMakeSelect($this, $product_id) { 
     255    function lfMakeSelect($product_id) { 
    257256 
    258257        $objDb = new SC_Helper_DB_Ex(); 
     
    376375        $this->tpl_classcat_find2 = $classcat_find2; 
    377376        $this->tpl_stock_find = $stock_find; 
    378  
    379         return $this; 
    380377    } 
    381378 
Note: See TracChangeset for help on using the changeset viewer.