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/SC_SelectSql.php

    r22739 r22856  
    2323 
    2424/* ---- SQL文を作るクラス ---- */ 
    25 class SC_SelectSql  
     25class SC_SelectSql 
    2626{ 
    27  
    2827    var $sql; 
    2928 
     
    5958    { 
    6059        $return = '%' .$val. '%'; 
     60 
    6161        return $return; 
    6262    } 
     
    6565    function selectRange($from, $to, $column) 
    6666    { 
    67  
    6867        // ある単位のみ検索($from = $to) 
    6968        if ($from == $to) { 
     
    8382            $return = array($from, $to); 
    8483        } 
     84 
    8585        return $return; 
    8686    } 
     
    131131        $return = array(); 
    132132        foreach ($arr as $data) { 
    133  
    134133            if (count($arr) > 1) { 
    135134                if (!is_null($data)) { 
     
    149148        } 
    150149        $this->setWhere($item); 
     150 
    151151        return $return; 
    152152    } 
     
    169169        $item = "({$item}) "; 
    170170        $this->setWhere($item); 
     171 
    171172        return $return; 
    172173    } 
     
    188189        $item = "({$item}) "; 
    189190        $this->setWhere($item); 
     191 
    190192        return $return; 
    191193    } 
     
    200202    function setWhereByOR($arrWhere) 
    201203    { 
    202  
    203204        $count = count($arrWhere); 
    204205 
     
    212213 
    213214        if ($this->where) { 
    214  
    215215            $this->where .= ' AND ' . $statement; 
    216216 
    217217        } else { 
    218  
    219218            $this->where = 'WHERE ' . $statement; 
    220219        } 
     
    243242        if ($where != '') { 
    244243            if ($this->where) { 
    245  
    246244                $this->where .= ' AND ' . $where; 
    247245 
    248246            } else { 
    249  
    250247                $this->where = 'WHERE ' . $where; 
    251248            } 
     
    255252    function setOrder($order) 
    256253    { 
    257  
    258254            $this->order =  'ORDER BY ' . $order; 
    259255 
     
    262258    function setGroup($group) 
    263259    { 
    264  
    265260        $this->group =  'GROUP BY ' . $group; 
    266261 
Note: See TracChangeset for help on using the changeset viewer.