Ignore:
Timestamp:
2006/12/06 09:22:14 (20 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

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

    r7999 r10259  
    121121    } 
    122122     
    123     function setlimitoffset($limit, $offset = 0) { 
     123    function setlimitoffset($limit, $offset = 0, $return = false) { 
    124124        if (is_numeric($limit) && is_numeric($offset)){ 
    125             $this->option.= " LIMIT " . $limit; 
    126             $this->option.= " OFFSET " . $offset; 
     125             
     126            $option.= " LIMIT " . $limit; 
     127            $option.= " OFFSET " . $offset; 
     128             
     129            if($return){ 
     130                return $option; 
     131            }else{ 
     132                $this->option.= $option; 
     133            } 
    127134        } 
    128135    } 
Note: See TracChangeset for help on using the changeset viewer.