Ignore:
Timestamp:
2013/06/08 16:35:27 (11 years ago)
Author:
Seasoft
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • 主に空白・空白行の調整。もう少し整えたいが、一旦現状コミット。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php

    r22736 r22856  
    2222 */ 
    2323 
    24 // {{{ requires 
    2524require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php'; 
    2625 
     
    3231 * @version $Id$ 
    3332 */ 
    34 class LC_Page_Admin_Products_ProductClass extends LC_Page_Admin_Ex  
     33class LC_Page_Admin_Products_ProductClass extends LC_Page_Admin_Ex 
    3534{ 
    36  
    37     // }}} 
    38     // {{{ functions 
    39  
    4035    /** 
    4136     * Page を初期化する. 
     
    7570    function action() 
    7671    { 
    77  
    7872        // 商品マスターの検索条件パラメーターを初期化 
    7973        $objFormParam = new SC_FormParam_Ex(); 
     
    8680 
    8781        switch ($this->getMode()) { 
    88  
    8982            // 編集実行 
    9083            case 'edit': 
     
    295288 
    296289            $objQuery->insert('dtb_products_class', $arrPC); 
    297              
     290 
    298291            // 税情報登録/更新 
    299292            SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']); 
     
    325318        $objErr->doFunc(array('規格', 'class_id1', 'select_class_id2'), array('TOP_EXIST_CHECK')); 
    326319        $objErr->doFunc(array('規格1', '規格2', 'class_id1', 'class_id2'), array('DIFFERENT_CHECK')); 
     320 
    327321        return $objErr->arrErr; 
    328322    } 
     
    345339 
    346340        for ($i = 0; $i < $total; $i++) { 
    347  
    348341            /* 
    349342             * チェックボックスの入っている項目のみ, 必須チェックを行う. 
     
    351344             */ 
    352345            if (!SC_Utils_Ex::isBlank($arrValues['check'][$i])) { 
    353  
    354346                /* 
    355347                 * 販売価格の必須チェック 
     
    403395            } 
    404396        } 
     397 
    405398        return $arrErr; 
    406399    } 
     
    520513                $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']); 
    521514                $arrValues['tax_rate'] = $arrRet['tax_rate']; 
    522                  
     515 
    523516                $arrMergeProductsClass[] = $arrValues; 
    524517            } 
     
    719712            $arrParams = array($class_id1, $class_id2); 
    720713        } 
     714 
    721715        return $objQuery->select($col, $table, '', $arrParams); 
    722716    } 
     
    732726    { 
    733727        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     728 
    734729        return $objQuery->get('name', 'dtb_products', 'product_id = ?', array($product_id)); 
    735730    } 
     
    756751            } 
    757752        } 
     753 
    758754        return $results; 
    759755    } 
     
    772768        $col = 'product_code, price01, price02, stock, stock_unlimited, sale_limit, deliv_fee, point_rate'; 
    773769        $where = 'product_id = ? AND classcategory_id1 = 0 AND classcategory_id2 = 0'; 
     770 
    774771        return $objQuery->getRow($col, 'dtb_products_class', $where, array($product_id)); 
    775772    } 
Note: See TracChangeset for help on using the changeset viewer.