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

    r23103 r23126  
    3434{ 
    3535    /** ページナンバー */ 
    36     var $tpl_pageno; 
     36    public $tpl_pageno; 
    3737 
    3838    /** 
     
    4141     * @return void 
    4242     */ 
    43     function init() 
     43    public function init() 
    4444    { 
    4545        parent::init(); 
     
    5353     * @return void 
    5454     */ 
    55     function process() 
     55    public function process() 
    5656    { 
    5757        parent::process(); 
     
    6363     * @return void 
    6464     */ 
    65     function action() 
     65    public function action() 
    6666    { 
    6767        $objCustomer = new SC_Customer_Ex(); 
     
    109109     * @return array お気に入り商品一覧 
    110110     */ 
    111     function lfGetFavoriteProduct($customer_id, &$objPage) 
     111    public function lfGetFavoriteProduct($customer_id, &$objPage) 
    112112    { 
    113113        $objQuery       = SC_Query_Ex::getSingletonInstance(); 
     
    117117        $where = 'f.customer_id = ? and p.status = 1'; 
    118118        if (NOSTOCK_HIDDEN) { 
    119             $where .= ' AND EXISTS(SELECT * FROM dtb_products_class WHERE product_id = dtb_customer_favorite_products.product_id AND del_flg = 0 AND (stock >= 1 OR stock_unlimited = 1))'; 
     119            $where .= ' AND EXISTS(SELECT * FROM dtb_products_class WHERE product_id = f.product_id AND del_flg = 0 AND (stock >= 1 OR stock_unlimited = 1))'; 
    120120        } 
    121121        $arrProductId  = $objQuery->getCol('f.product_id', 'dtb_customer_favorite_products f inner join dtb_products p using (product_id)', $where, array($customer_id)); 
     
    159159 
    160160    /* 仕方がない処理。。 */ 
    161     function lfMakeWhere($tablename, $arrProductId) 
     161    public function lfMakeWhere($tablename, $arrProductId) 
    162162    { 
    163163        // 取得した表示すべきIDだけを指定して情報を取得。 
     
    174174 
    175175    // お気に入り商品削除 
    176     function lfDeleteFavoriteProduct($customer_id, $product_id) 
     176    public function lfDeleteFavoriteProduct($customer_id, $product_id) 
    177177    { 
    178178        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
Note: See TracChangeset for help on using the changeset viewer.