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/mypage/LC_Page_Mypage_History.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Mypage_History extends LC_Page_AbstractMypage_Ex  
    35 { 
     34class LC_Page_Mypage_History extends LC_Page_AbstractMypage_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mypageno     = 'index'; 
     
    6260     * @return void 
    6361     */ 
    64     function process() 
    65     { 
     62    function process() { 
    6663        parent::process(); 
    6764    } 
     
    7269     * @return void 
    7370     */ 
    74     function action() 
    75     { 
     71    function action() { 
    7672 
    7773        $objCustomer    = new SC_Customer_Ex(); 
    7874        $objDb          = new SC_Helper_DB_Ex(); 
    7975        $objPurchase = new SC_Helper_Purchase_Ex(); 
    80         $objProduct  = new SC_Product(); 
    8176 
    8277        if (!SC_Utils_Ex::sfIsInt($_GET['order_id'])) { 
     
    8479        } 
    8580 
    86         $order_id               = $_GET['order_id']; 
    87         $this->is_price_change  = false; 
     81        $order_id        = $_GET['order_id']; 
    8882 
    8983        //受注データの取得 
     
    9892        $this->isMultiple       = count($this->arrShipping) > 1; 
    9993        // 支払い方法の取得 
    100         $this->arrPayment       = SC_Helper_Payment_Ex::getIDValueList(); 
     94        $this->arrPayment       = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 
    10195        // 受注商品明細の取得 
    10296        $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); 
    103         foreach ($this->tpl_arrOrderDetail as $product_index => $arrOrderProductDetail) { 
    104             //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い 
    105             $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']);  
    106             if($this->tpl_arrOrderDetail[$product_index]['price'] != $arrTempProductDetail['price02']) { 
    107                 $this->is_price_change = true; 
    108             } 
    109             $this->tpl_arrOrderDetail[$product_index]['product_price'] = ($arrTempProductDetail['price02'])?$arrTempProductDetail['price02']:0; 
    110         } 
    111          
    11297        $this->tpl_arrOrderDetail = $this->setMainListImage($this->tpl_arrOrderDetail); 
    11398        $objPurchase->setDownloadableFlgTo($this->tpl_arrOrderDetail); 
     
    125110     * @return void 
    126111     */ 
    127     function destroy() 
    128     { 
     112    function destroy() { 
    129113        parent::destroy(); 
    130114    } 
     
    136120     * @return array 受注メール送信履歴の内容 
    137121     */ 
    138     function lfGetMailHistory($order_id) 
    139     { 
     122    function lfGetMailHistory($order_id) { 
    140123        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    141124        $col        = 'send_date, subject, template_id, send_id'; 
     
    153136     * @return array お届け先情報 
    154137     */ 
    155     function lfGetShippingDate(&$objPurchase, $order_id, $arrWDAY) 
    156     { 
     138    function lfGetShippingDate(&$objPurchase, $order_id, $arrWDAY) { 
    157139        $arrShipping = $objPurchase->getShippings($order_id); 
    158140 
     
    176158     * @return array 画像をセットした購入履歴の配列 
    177159     */ 
    178     function setMainListImage($arrOrderDetails) 
    179     { 
     160    function setMainListImage($arrOrderDetails) { 
    180161        $i = 0; 
    181162        foreach ($arrOrderDetails as $arrOrderDetail) { 
     
    194175     * @return array MIMETYPE、ファイル名をセットした購入履歴の配列 
    195176     */ 
    196     function lfSetMimetype($arrOrderDetails) 
    197     { 
     177    function lfSetMimetype($arrOrderDetails) { 
    198178        $objHelperMobile = new SC_Helper_Mobile_Ex(); 
    199179        $i = 0; 
     
    216196     * @param $arrOrderDetail 購入履歴の配列 
    217197     */ 
    218     function lfSetAU($arrOrderDetails) 
    219     { 
     198    function lfSetAU($arrOrderDetails) { 
    220199        $this->isAU = false; 
    221200        // モバイル端末かつ、キャリアがAUの場合に処理を行う 
Note: See TracChangeset for help on using the changeset viewer.