Ignore:
Timestamp:
2010/07/20 13:25:33 (14 years ago)
Author:
kajiwara
Message:

EC-CUBE Ver2.4.4 分コミット。詳細はこちら( http://www.ec-cube.net/release/detail.php?release_id=223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/class/SC_Query.php

    r18562 r18758  
    33 * This file is part of EC-CUBE 
    44 * 
    5  * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
     5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 
    66 * 
    77 * http://www.lockon.co.jp/ 
     
    8989     */ 
    9090    function select($col, $table, $where = "", $arrval = array()){ 
    91         $sqlse = $this->getsql($col, $table, $where); 
     91        $sqlse = $this->getSql($col, $table, $where); 
    9292        // DBに依存した SQL へ変換 
    9393        $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 
     
    153153    } 
    154154 
    155     function getall($sql, $arrval = array()) { 
     155    function getAll($sql, $arrval = array()) { 
    156156        $ret = $this->conn->getAll($sql, $arrval); 
    157157        return $ret; 
    158158    } 
    159159 
    160     function getsql($col, $table, $where) { 
     160    function getSql($col, $table, $where) { 
    161161        if($where != "") { 
    162162            // 引数の$whereを優先して実行する。 
     
    172172    } 
    173173 
    174     function setoption($str) { 
     174    function setOption($str) { 
    175175        $this->option = $str; 
    176176    } 
    177177 
    178     function setlimitoffset($limit, $offset = 0, $return = false) { 
     178    function setLimitOffset($limit, $offset = 0, $return = false) { 
    179179        if (is_numeric($limit) && is_numeric($offset)){ 
    180180 
     
    190190    } 
    191191 
    192     function setgroupby($str) { 
     192    function setGroupBy($str) { 
    193193        $this->groupby = "GROUP BY " . $str; 
    194194    } 
     
    202202    } 
    203203 
    204     function orwhere($str) { 
     204    function orWhere($str) { 
    205205        if($this->where != "") { 
    206206            $this->where .= " OR " . $str; 
     
    210210    } 
    211211 
    212     function setwhere($str) { 
     212    function setWhere($str) { 
    213213        $this->where = $str; 
    214214    } 
    215215 
    216     function setorder($str) { 
     216    function setOrder($str) { 
    217217        $this->order = "ORDER BY " . $str; 
    218218    } 
    219219 
    220220 
    221     function setlimit($limit){ 
     221    function setLimit($limit){ 
    222222        if ( is_numeric($limit)){ 
    223223            $this->option = " LIMIT " .$limit; 
     
    225225    } 
    226226 
    227     function setoffset($offset) { 
     227    function setOffset($offset) { 
    228228        if ( is_numeric($offset)){ 
    229229            $this->offset = " OFFSET " .$offset; 
     
    404404    } 
    405405 
    406     function getone($sql, $arrval = array()) { 
     406    function getOne($sql, $arrval = array()) { 
    407407        // SQL文の実行 
    408408        $ret = $this->conn->getOne($sql, $arrval); 
     
    412412 
    413413    // 一行を取得 
    414     function getrow($table, $col, $where = "", $arrval = array()) { 
     414    function getRow($table, $col, $where = "", $arrval = array()) { 
    415415        if(strlen($where) <= 0) { 
    416416            $sqlse = "SELECT $col FROM $table"; 
Note: See TracChangeset for help on using the changeset viewer.