Ignore:
Timestamp:
2011/10/02 04:22:08 (9 years ago)
Author:
Seasoft
Message:

#1488 (SC_SelectSql#selectTermRange がプレースホルダを使っていない)
#1449 (不要な関数・処理の整理)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_CustomerList.php

    r21118 r21269  
    213213        if( is_numeric( $this->arrSql["search_buy_total_from"] ) || is_numeric( $this->arrSql["search_buy_total_to"] ) ) { 
    214214            $arrBuyTotal = $this->selectRange($this->arrSql["search_buy_total_from"], $this->arrSql["search_buy_total_to"], "buy_total"); 
    215             foreach ($arrBuyTotal as $data1) { 
    216                 $this->arrVal[] = $data1; 
     215            foreach ($arrBuyTotal as $data) { 
     216                $this->arrVal[] = $data; 
    217217            } 
    218218        } 
     
    223223        if( is_numeric( $this->arrSql["search_buy_times_from"] ) || is_numeric( $this->arrSql["search_buy_times_to"] ) ) { 
    224224            $arrBuyTimes = $this->selectRange($this->arrSql["search_buy_times_from"], $this->arrSql["search_buy_times_to"], "buy_times"); 
    225             foreach ($arrBuyTimes as $data2) { 
    226                 $this->arrVal[] = $data2; 
     225            foreach ($arrBuyTimes as $data) { 
     226                $this->arrVal[] = $data; 
    227227            } 
    228228        } 
     
    240240            $arrBirth = $this->selectTermRange($this->arrSql['search_b_start_year'], $this->arrSql['search_b_start_month'], $this->arrSql['search_b_start_day'] 
    241241                      , $this->arrSql['search_b_end_year'], $this->arrSql['search_b_end_month'], $this->arrSql['search_b_end_day'], 'birth'); 
    242             if (is_array($arrBirth)) { 
    243                 foreach ($arrBirth as $data3) { 
    244                     $this->arrVal[] = $data3; 
    245                 } 
     242            foreach ($arrBirth as $data) { 
     243                $this->arrVal[] = $data; 
    246244            } 
    247245        } 
     
    266264            $arrRegistTime = $this->selectTermRange($this->arrSql['search_start_year'], $this->arrSql['search_start_month'], $this->arrSql['search_start_day'] 
    267265                            , $this->arrSql['search_end_year'], $this->arrSql['search_end_month'], $this->arrSql['search_end_day'], $regdate_col); 
    268             if (is_array($arrRegistTime)) { 
    269                 foreach ($arrRegistTime as $data4) { 
    270                     $this->arrVal[] = $data4; 
    271                 } 
     266            foreach ($arrRegistTime as $data) { 
     267                $this->arrVal[] = $data; 
    272268            } 
    273269        } 
     
    285281            $arrRegistTime = $this->selectTermRange($this->arrSql['search_buy_start_year'], $this->arrSql['search_buy_start_month'], $this->arrSql['search_buy_start_day'] 
    286282                            , $this->arrSql['search_buy_end_year'], $this->arrSql['search_buy_end_month'], $this->arrSql['search_buy_end_day'], "last_buy_date"); 
    287             if (is_array($arrRegistTime)) { 
    288                 foreach ($arrRegistTime as $data4) { 
    289                     $this->arrVal[] = $data4; 
    290                 } 
     283            foreach ($arrRegistTime as $data) { 
     284                $this->arrVal[] = $data; 
    291285            } 
    292286        } 
Note: See TracChangeset for help on using the changeset viewer.