Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

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

File:
1 edited

Legend:

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

    r21490 r21514  
    103103        case 'delete': 
    104104            // 商品、子テーブル(商品規格)、会員お気に入り商品の削除 
    105             $this->doDelete("product_id = ?", array($objFormParam->getValue('product_id'))); 
     105            $this->doDelete('product_id = ?', array($objFormParam->getValue('product_id'))); 
    106106            // 件数カウントバッチ実行 
    107107            $objDb->sfCountCategory($objQuery); 
     
    120120 
    121121            if (count($this->arrErr) == 0) { 
    122                 $where = "del_flg = 0"; 
     122                $where = 'del_flg = 0'; 
    123123                foreach ($arrParam as $key => $val) { 
    124                     if ($val == "") { 
     124                    if ($val == '') { 
    125125                        continue; 
    126126                    } 
     
    128128                } 
    129129 
    130                 $order = "update_date DESC"; 
     130                $order = 'update_date DESC'; 
    131131 
    132132                /* ----------------------------------------------- 
     
    229229        $objErr->arrErr = $objFormParam->checkError(); 
    230230 
    231         $objErr->doFunc(array("開始日", "終了日", 'search_startyear', 'search_startmonth', 'search_startday', 'search_endyear', 'search_endmonth', 'search_endday'), array('CHECK_SET_TERM')); 
     231        $objErr->doFunc(array('開始日', '終了日', 'search_startyear', 'search_startmonth', 'search_startday', 'search_endyear', 'search_endmonth', 'search_endday'), array('CHECK_SET_TERM')); 
    232232 
    233233        return $objErr->arrErr; 
     
    238238        $max = count($arrCatKey); 
    239239        for ($cnt = 0; $cnt < $max; $cnt++) { 
    240             $key = isset($arrCatKey[$cnt]) ? $arrCatKey[$cnt] : ""; 
    241             $val = isset($arrCatVal[$cnt]) ? $arrCatVal[$cnt] : ""; 
     240            $key = isset($arrCatKey[$cnt]) ? $arrCatKey[$cnt] : ''; 
     241            $val = isset($arrCatVal[$cnt]) ? $arrCatVal[$cnt] : ''; 
    242242            $arrRet[$key] = $val; 
    243243        } 
     
    283283        // 商品ID 
    284284        case 'search_product_id': 
    285             $where .= " AND product_id = ?"; 
     285            $where .= ' AND product_id = ?'; 
    286286            $arrValues[] = sprintf('%d', $objFormParam->getValue($key)); 
    287287            break; 
    288288        // 商品コード 
    289289        case 'search_product_code': 
    290             $where .= " AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)"; 
     290            $where .= ' AND product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code ILIKE ? GROUP BY product_id)'; 
    291291            $arrValues[] = sprintf('%%%s%%', $objFormParam->getValue($key)); 
    292292            break; 
    293293        // 商品名 
    294294        case 'search_name': 
    295             $where .= " AND name LIKE ?"; 
     295            $where .= ' AND name LIKE ?'; 
    296296            $arrValues[] = sprintf('%%%s%%', $objFormParam->getValue($key)); 
    297297            break; 
     
    299299        case 'search_category_id': 
    300300            list($tmp_where, $tmp_Values) = $objDb->sfGetCatWhere($objFormParam->getValue($key)); 
    301             if ($tmp_where != "") { 
    302                 $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 
     301            if ($tmp_where != '') { 
     302                $where.= ' AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE ' . $tmp_where . ')'; 
    303303                $arrValues = array_merge((array)$arrValues, (array)$tmp_Values); 
    304304            } 
     
    306306        // 種別 
    307307        case 'search_status': 
    308             $tmp_where = ""; 
     308            $tmp_where = ''; 
    309309            foreach ($objFormParam->getValue($key) as $element) { 
    310                 if ($element != "") { 
     310                if ($element != '') { 
    311311                    if (SC_Utils_Ex::isBlank($tmp_where)) { 
    312                         $tmp_where .= " AND (status = ?"; 
     312                        $tmp_where .= ' AND (status = ?'; 
    313313                    } else { 
    314                         $tmp_where .= " OR status = ?"; 
     314                        $tmp_where .= ' OR status = ?'; 
    315315                    } 
    316316                    $arrValues[] = $element; 
     
    319319 
    320320            if (!SC_Utils_Ex::isBlank($tmp_where)) { 
    321                 $tmp_where .= ")"; 
     321                $tmp_where .= ')'; 
    322322                $where .= " $tmp_where "; 
    323323            } 
     
    328328                                                $objFormParam->getValue('search_startmonth'), 
    329329                                                $objFormParam->getValue('search_startday')); 
    330             $where.= " AND update_date >= ?"; 
     330            $where.= ' AND update_date >= ?'; 
    331331            $arrValues[] = $date; 
    332332            break; 
     
    336336                                                $objFormParam->getValue('search_endmonth'), 
    337337                                                $objFormParam->getValue('search_endday'), true); 
    338             $where.= " AND update_date <= ?"; 
     338            $where.= ' AND update_date <= ?'; 
    339339            $arrValues[] = $date; 
    340340            break; 
     
    342342        case 'search_product_statuses': 
    343343            if (count($objFormParam->getValue($key)) > 0) { 
    344                 $where .= " AND product_id IN (SELECT product_id FROM dtb_product_status WHERE product_status_id IN ("; 
     344                $where .= ' AND product_id IN (SELECT product_id FROM dtb_product_status WHERE product_status_id IN ('; 
    345345                foreach ($objFormParam->getValue($key) as $param) { 
    346                     $where .= "?,"; 
     346                    $where .= '?,'; 
    347347                    $arrValues[] = $param; 
    348348                } 
     
    380380 
    381381        // 読み込む列とテーブルの指定 
    382         $col = "product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date"; 
     382        $col = 'product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date'; 
    383383        $from = $objProduct->alldtlSQL(); 
    384384 
Note: See TracChangeset for help on using the changeset viewer.