Ignore:
Timestamp:
2012/02/06 11:05:15 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

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

    r21420 r21441  
    122122                $where = "del_flg = 0"; 
    123123                foreach ($arrParam as $key => $val) { 
    124                     if($val == "") { 
     124                    if ($val == "") { 
    125125                        continue; 
    126126                    } 
     
    133133                 * 処理を実行 
    134134                 * ----------------------------------------------- */ 
    135                 switch($this->getMode()) { 
     135                switch ($this->getMode()) { 
    136136                    // CSVを送信する。 
    137137                    case 'csv': 
     
    301301        case 'search_category_id': 
    302302            list($tmp_where, $tmp_Values) = $objDb->sfGetCatWhere($objFormParam->getValue($key)); 
    303             if($tmp_where != "") { 
     303            if ($tmp_where != "") { 
    304304                $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 
    305305                $arrValues = array_merge((array)$arrValues, (array)$tmp_Values); 
     
    309309        case 'search_status': 
    310310            $tmp_where = ""; 
    311             foreach($objFormParam->getValue($key) as $element) { 
    312                 if($element != "") { 
    313                     if(SC_Utils_Ex::isBlank($tmp_where)) { 
     311            foreach ($objFormParam->getValue($key) as $element) { 
     312                if ($element != "") { 
     313                    if (SC_Utils_Ex::isBlank($tmp_where)) { 
    314314                        $tmp_where .= " AND (status = ?"; 
    315315                    } else { 
     
    320320            } 
    321321 
    322             if(!SC_Utils_Ex::isBlank($tmp_where)) { 
     322            if (!SC_Utils_Ex::isBlank($tmp_where)) { 
    323323                $tmp_where .= ")"; 
    324324                $where .= " $tmp_where "; 
     
    343343        // 商品ステータス 
    344344        case 'search_product_statuses': 
    345             if(count($objFormParam->getValue($key)) > 0) { 
     345            if (count($objFormParam->getValue($key)) > 0) { 
    346346                $where .= " AND product_id IN (SELECT product_id FROM dtb_product_status WHERE product_status_id IN ("; 
    347                 foreach($objFormParam->getValue($key) as $param) { 
     347                foreach ($objFormParam->getValue($key) as $param) { 
    348348                    $where .= "?,"; 
    349349                    $arrValues[] = $param; 
Note: See TracChangeset for help on using the changeset viewer.